本文共 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/