![]() ![]() ![]() The first time you use sudo in a session, you will be prompted for the password of that user’s account. To test that the new sudo permissions are working, first use the su command to switch to the new user account:Īs the new user, verify that you can use sudo by prepending sudo to the command that you want to run with superuser privileges:įor example, you can list the contents of the /root directory, which is normally only accessible to the root user: By default on Ubuntu, all members of the sudo group have full sudo privileges. Use the usermod command to add the user to the sudo group:Īgain, be sure to replace sammy with the username you just added. Step 3 - Adding the User to the sudo Group OutputChanging the user information for sammyĮnter the new value, or press ENTER for the default This configuration allows system accounting to trace the original login name of any user who performs a privileged administrative action. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |