If you have any questions or suggestions, feel free to leave them in the comments. With that, you’ve given a user sudo permissions! The commands should be mostly, if not completely functional on other distros such as Debian, Fedora, or Arch Linux. Look for the same output as mentioned before. Step 2: Toggle the Administrator switch to on.Īnd that’s it! If you want to see if it worked, log in as the user you gave administrator permissions to and try running the same command as before. Enter your password when prompted to do so. Step 1: Open up the Settings application, go to ‘Users’ and click ‘Unlock’. Giving a user sudo permissions on Ubuntu Desktop is a simple two-step process: Giving sudo access to a user on Ubuntu Desktop If you get an error about the user not being in the sudoers file, try going through the instructions again, or you can use the graphical method below. If everything’s set up correctly, it’ll output I am root!. You can check if the user is part of sudo group with the following: groups usernameĪlternatively, you can log in as the other user you just gave sudo access to and run a command with sudo. There are various ways you can check if a user has sudo access. How to verify if the user has sudo access You’ll find the username near the end of the command’s output. If you don’t know the exact username, you can list the users on your system using the compgen -u command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |