ubuntu 把用户添加到sudo

usermod -a -G sudo 用户名

 

useradd mzh

passwd mzh

sudo su -

mzh is not in the sudoers file.  This incident will be reported.

 

ssh root@198.13.46.64

usermod -a -G sudo mzh

logout

ssh mzh@198.13.46.64

 

vi /etc/passwd

把sh修改为bash

mzh:x:1000:1000::/home/mzh:/bin/bash

 

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh

chmod +x ssr.sh

bash ssr.sh

https://github.com/Alvin9999/new-pac/wiki/%E8%87%AA%E5%BB%BAss%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%99%E7%A8%8B

 

相关文章:

CentOS 把用户添加到sudoer

https://blog.csdn.net/fareast_mzh/article/details/81908198

你可能感兴趣的:(Linux)