aiastia / note

笔记
17 stars 5 forks source link

ubuntu下取消sudo输入密码 #43

Open aiastia opened 4 years ago

aiastia commented 4 years ago

sudo vi /etc/sudoers

找到

Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

添加 ubuntu ALL=(ALL) NOPASSWD:ALL

aiastia commented 4 years ago

修改 远程登陆用户

vi /etc/ssh/sshd_config

AllowUsers any

aiastia commented 4 years ago

添加用户

adduser name

aiastia commented 1 year ago

systemctl start docker