Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux添加用户 #25

Open
chenshenhai opened this issue Dec 1, 2017 · 0 comments
Open

Linux添加用户 #25

chenshenhai opened this issue Dec 1, 2017 · 0 comments
Labels

Comments

@chenshenhai
Copy link
Owner

chenshenhai commented Dec 1, 2017

初始化新用户和密码

# 新增用户
adduser   newuser

# 新用户密码
passwd newuser

赋予新用户root权限

  • 编辑 /etc/sudoers
  • 添加 newuser ALL=(ALL) ALL
## Allow root to run any commands anywhere
root    ALL=(ALL)     ALL
newuser    ALL=(ALL)     ALL
  • 验证权限 su -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant