Skip to content

Instantly share code, notes, and snippets.

@rayepeng
Created May 21, 2021 07:43
Show Gist options
  • Save rayepeng/fba912d19a65b001228dff14b86a2f6f to your computer and use it in GitHub Desktop.
Save rayepeng/fba912d19a65b001228dff14b86a2f6f to your computer and use it in GitHub Desktop.
Linux 用户操作
useradd steam
passwd steam
# 修改 /etc/sudoers 文件
chmod u+w /etc/sudoers
'''
即执行:vi /etc/sudoers
找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名)
ps:这里说下你可以sudoers添加下面四行中任意一条
youuser ALL=(ALL) ALL
%youuser ALL=(ALL) ALL
youuser ALL=(ALL) NOPASSWD: ALL
%youuser ALL=(ALL) NOPASSWD: ALL
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment