We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sudo useradd -r -m -s /bin/bash gpu
-m 创建用户目录在 /home/gpu
usermod -d /home/xx/gpu gpu
sudo usermod -aG guestgroup username
root
/etc/sudoers
chmod +w /etc/sudoers vi /etc/sudoers
gpu ALL=(ALL:ALL) ALL
sudo
sudo usermod -a -G sudo newuser
newuser
sudo deluser newuser sudo
.bashrc
.profile
The text was updated successfully, but these errors were encountered:
No branches or pull requests
添加用户
UseCase
sudo useradd -r -m -s /bin/bash gpu
-m 创建用户目录在 /home/gpu
usermod -d /home/xx/gpu gpu
sudo usermod -aG guestgroup username
为用户添加
root
权限方法一 修改
/etc/sudoers
文件方法二 把用户添加到
sudo
Groupnewuser
移除sudo
权限Issues
.bashrc
.bashrc
/.profile
到 当前用户,重新登录即可Reference
The text was updated successfully, but these errors were encountered: