博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
账户管理相关
阅读量:4284 次
发布时间:2019-05-27

本文共 1045 字,大约阅读时间需要 3 分钟。

##账户管理相关

  • 创建账户之后没有家目录
useradd poppasswd popcp -a /etc/skel/   /home/popchown -R pop:linux /home/pop修改 /etc/passwd	修改 pop:x:1001:1001::/home/pop:/bin/bash//修改/etc/sudoers	//添加 pop  ALL=(ALL:ALL) ALL修改/etc/sudoers //确保你的pop 账户在 admin 中,当然,下面的配置 是指 admin 组的 配置	%admin ALL=(ALL) 	改为 	%admin ALL=(ALL) NOPASSWD: ALL
## This file MUST be edited with the 'visudo' command as root.## Please consider adding local content in /etc/sudoers.d/ instead of# directly modifying this file.## See the man page for details on how to write a sudoers file.#Defaults    env_resetDefaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specificationroot    ALL=(ALL:ALL) ALL# Members of the admin group may gain root privileges#%admin ALL=(ALL) ALL%admin ALL=(ALL) NOPASSWD: ALL # Allow members of group sudo to execute any command%sudo   ALL=(ALL:ALL) ALLubuntu  ALL=NOPASSWD:ALL# See sudoers(5) for more information on "#include" directives:

转载地址:http://ktigi.baihongyu.com/

你可能感兴趣的文章
linux nand flash常用命令
查看>>
NESSUS扫描操作指导
查看>>
C语言读取文件大小,载入文件全部内容
查看>>
C语言 static静态变量的作用
查看>>
Linux(C/C++)下的文件操作open、fopen与freopen
查看>>
C语言 文件操作的头文件
查看>>
C语言的常用库函数(dos)之四(dir.h文件下的一些函数)
查看>>
warning: jobserver unavailable: using -j1. Add `+' to parent make rule问题怎么解决
查看>>
防火墙报文转发流程
查看>>
以太坊创始人:17岁的亿万富翁养成记
查看>>
linux下IPTABLES配置详解
查看>>
关于iptables -m选项以及规则的理解
查看>>
linux系统中查看己设置iptables规则
查看>>
一些库函数的使用注意事项
查看>>
IPv6地址自动配置中的有状态(stateful)和无状态(stateless)的区别
查看>>
阿里云 ACP 云安全 题库总结
查看>>
阿里云 ACP 云安全 题库 -- 数据库审计部分
查看>>
GC 回收机制
查看>>
探究 Android MVC、MVP、MVVM 的区别以及优缺点
查看>>
深入分析 Handler 内存泄露
查看>>