How can I set the Software Center to allow non-root users to install stuff from the Ubuntu repos without having to type in their password? I'm fully aware of the security implications, and am willing to take the risk. Fedora 12 shipped with something like this. (By modifying the PolicyKit configuration, I believe)
You can modify the PolicyKit permissions to allow the users to access the aptdaemon backend that Software Centre uses.
I don't think it's currently possible to do so via the GUI, but the following should work, albeit be a little kludgy. YMMV.
Add the following line to /etc/sudoers (use
Then you just need to create and add the specific users to the
and you can edit the desktop menu item for the Software Center so that it call on
PolicyKit may allow you to do so without sudo, but it's beyond my understanding at this point.
RAOF's answer applies to Ubuntu only. Kubuntu uses QAptWorker as backend (observed for Natty and Oneiric). To allow for non-root installations, create
I wanted to allow some non-admin users to install software while not granting sudo access directly. That was accomplished by inserting the next lines in both configuration groups:
If there is a group that must be granted permission, use
If you only need a generic permission to allow/disallow package installation, go for PolicyKit.
Unfortunately PolicyKit doesn't have fine control over the package to install. If you want to give your users permission to install only a restricted set of applications, you should use sudo and install something like softwarechannels.
I also looked for something like that, but nothing showed up, so I coded this easy solution "softwarechannels":
It is a very simple system to allow common (no admin) users to install packages from restricted catalogs.
Just define 'channels' (groups of packages) in a simple text file and give your users permissions to launch softwarechannels.
They will only see packages in channels matching their unix groups.