Created
May 21, 2021 07:43
-
-
Save rayepeng/fba912d19a65b001228dff14b86a2f6f to your computer and use it in GitHub Desktop.
Linux 用户操作
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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