sudo without entering a password

An input terminal: sudo gedit / etc / sudoers

2 root ALL open file = (ALL: ALL) ALL next line add "their username ALL = (ALL) ALL", for example, the user name is Tom, then add: Tom ALL = (ALL) ALL

3 In the last line add: Tom ALL = (ALL) NOPASSWD: ALL

Reference: https: //www.cnblogs.com/wanghuixi/p/7513780.html

Guess you like

Origin www.cnblogs.com/xxswkl/p/11109631.html