![]() ![]() This pkexec method works (on desktop systems) because Ubuntu systems with a GUI installed have two separate mechanisms for administrators to perform actions as root: sudo, and PolicyKit. Ubuntu 12.04 and later should have this (even if they also have the above lines because they were upgraded from an earlier release): # Allow members of group sudo to execute any command Ubuntu systems before 12.04, or those that were upgraded from a version before 12.04, should have this: # Members of the admin group may gain root privileges ![]() Youll need to create a new user before we can add it to the sudoers list. ![]() That line will allow any users in the sudo group to use sudo. You can customize the above line to change the permissions just as though sudo was a user. Then just edit the sudoers file to add whatever entries you need. To be able to do that, you should make sure you have the following line in your sudoers file: sudo ALL (ALL:ALL) ALL. The administrator simply needs to add the regular user in the sudoers list. If you're in the admin group (or the sudo group starting with Ubuntu 12.04) but that group isn't configured in /etc/sudoers to be able to run commands as root with sudo, you can fix that problem the same way you'd fix a broken sudoers file: pkexec visudo Sudoer is the functionality of the Linux system that can be used by an administrator to provide administrative access to a trusted regular user, without actually sharing the root user's password. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |