

See the below screenshot before and after enabling the password-less sudo privileges for an account. The command syntax will be like: sudo your_command_here Its a very dirty trick wish leaves your system open for other dangers but I am guessing you know what you are doing and want this.
You can find the absolute path to a program by using whichIf you simply set the password for the user, you should be allowed to login.
#LINUX ALLOW USER TO SUDO WITHOUT PASSWORD HOW TO#
In this tutorial, you will understand how to configure passwordless sudo account on a Linux machine. Then you can assign sudo privileges to that account. Note: Be sure to use sudo visudo to edit anything sudo related or you could corrupt your sudo privileges. Then you can use the following to login: sudo su - app-admin. If you are on a server, you should be extra careful specially if you have SSH enabled. None other than the root user can reboot a Linux system but you want to provide the privilege to your team member, so they can reboot the instance on the absence of you. In your sudoers file, you can put the following entry: my-users ALLNOPASSWD: /bin/su - app-admin. In Linux, you can change sudo configuration to run some or all command with sudo but without entering password. For example, a command to reboot the server. Some of the commands are accessible by the root user only. Sudo provides special privileges to any user or group.
