•Please do not suggest this to others unless you personally are available 24/7 to support the user if they have issues as a result of running a shell as root. These instructions are to remove the prompt for a password when using the sudo command. The sudo command will still need to be used for root access though.
Edit the sudoers file
Open a Terminal window. Type in sudo visudo. Add the following line to the END of the file (if not at the end it can be nullified by later entries):
Example:
michael ALL=NOPASSWD: ALLType in ^x to exit. This should prompt for an option to save the file, type in Y to save.
Log out, log back in. This should now allow you to run the sudo command without being prompted for a password.
Reset sudo timeout
You can make sure sudo asks for password next time by running:
sudo -kThe default sudo timeout length can be changed by following this article: RootSudoTimeout
No comments:
Post a Comment
Thank You for your Comments, We will read and response you soon...