现在的位置: 首页 > 综合 > 正文

How to add a user to the sudoers list

2013年03月10日 ⁄ 综合 ⁄ 共 356字 ⁄ 字号 评论关闭
  1. Open a Root Terminal and type visudo
    (to access and edit the list)
  2. Using the up/down arrows
    , navigate to the bottom of the sudoers file that is now displayed in the terminal
  3. Just under the line that looks like the following:
  4. root ALL=(ALL) ALL

  5. Add the following (replacing user with your actual username):
  6. user ALL=(ALL) ALL

  7. Now press Ctrl+X
    and press Y
    when promted to save

       That's it, your new user now has root privileges!

抱歉!评论已关闭.