ITeye博客

普通用户增加sudo权限

mrjeye · 2011-05-19 10:46 · linux · 操作系统 · Bash · F# · Markdown

修改/etc/sudoers文件,修改命令必须为visudo才行

  #/usr/sbin/visudo -f /etc/sudoers

  在root ALL=(ALL) ALL 之后增加

  yourusername ALL=(ALL) ALL

  普通用户的.bash_profile文件在PATH变量中增加

  /sbin;/usr/sbin;/usr/local/sbin;/usr/kerberos/sbin

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。