I’ve stated that there must be a way of working around the need to provide the root password for certain administrative tasks. This is generally in response to threads started by people who find typing in a password when they want to install programs (For example.) to be extremely irritating.
I was convinced that there’s a way of achieving this using sudo while maintaining some semblance of control of the system in question. I think I found it! I’ve implemented it on my family’s secondary system. For me, our primary system will stick with requiring the root password for all admin tasks.
Also, you’ll note that the method I describe involves use of the command line tool vi This is appropriate as in my opinion the tweaks involved are for intermediate to advanced users who will appreciate that at best they are modifying the security of their system and increasing the chances of human error causing some sort of breakage.
So, on with how to allow admin tasks to be performed by selected users without the need to enter any passwords. There are three steps.
1. The first step is to open a terminal in root and make a copy of /etc/sudoers in case you need to restore it if it all goes a bit wrong.
To edit the sudoers file. The first thing I did was set up a user alias to include all the users I want to grant access to those users e.g.
2.Then, set up an entry in the user specification section of sudoers allowing the group mentioned above authority to run the application(s) of your choice. In my case, I just allowed them to run synaptic on a specified host. My example looked a bit like this:
3.The last step is to get the users in question to amend or create their shortcut of choice to run
Plain sudo works with Synaptic but you may need or prefer to use something like gksudo which is better suited to running GUI applications.
Well, there it is. Please bear in mind that this is intended as a rough description of the method used for users with enough experience to follow the steps detailed and with an appreciation of what they want to achieve and the potential consequences.









Comments
Leave a Reply