当前位置: 技术问答>linux和unix
How to enable sudo access without password prompting.
来源: 互联网 发布时间:2016-11-11
本文导语: Now I have a non-priviledged account acuser, I hope I can logon to the host machine with this account, and while i type "sudo ls" command, i hope it performace the directory lists without prompt for password. I have tried to type "visudo " t...
Now I have a non-priviledged account acuser, I hope I can logon to the host machine with this account, and while i type "sudo ls" command, i hope it performace the directory lists without prompt for password.
I have tried to type "visudo " to edit the sudo file, and insert "acuser ALL=(ALL) NOPASSWD: ALL" into the file,but it still doesn't work.I don't know what's wrong with it, please help.
I have tried to type "visudo " to edit the sudo file, and insert "acuser ALL=(ALL) NOPASSWD: ALL" into the file,but it still doesn't work.I don't know what's wrong with it, please help.
|
acuser ALL=NOPASSWD: ALL
|
提醒你修改完以后把权限修改回来即可