sudo password-free

Transfer: sudo password-free many of which are modified / etc / sudoers permissions for the 740 plus an ALL = NOPASSWD: ALL or add a yourname ALL = (ALL) NOPASSWD: ALL permissions back then start with the first 440 to do so all the user has sudo permissions, but not the password, security is very poor. There are two kinds of defects, doing so is not detected, grammar, if less than heart tremor look wrong, then you never sudo permissions, and very dangerous. Many people may not know there visudo this thing, this method is very safe, do $ sudo visudo find% admin ALL = (ALL) ALL of the comments, add the following to% admin ALL = (ALL) NOPASSWD: ALL means that belong admin user group can run sudo without entering a password if it is admin ALL = (ALL) NOPASSWD: ALL is to remove the percent sign, meaning that the admin sudo benefits of doing so is to avoid the user can perform an input error, if error, you will be prompted to quit after a mistake, press e re-edited, can not enter sudo will not be the case, a lot of security

Reproduced in: https: //www.cnblogs.com/kungfupanda/p/3324240.html

Guess you like

Origin blog.csdn.net/weixin_33920401/article/details/94493351