Just how can I set the Software Center to install software program for non-root customers?
Just how can I set the Software Center to permit non-root customers to install things from the Ubuntu repos without needing to key in their password?
I'm totally knowledgeable about the security effects, and also I agree to take the threat. Fedora 12 delivered with something similar to this. (By changing the PolicyKit arrangement, I think)
You can change the PolicyKit approvals to permit the customers to access the aptdaemon backend that Software Centre makes use of.
dpkg --listfiles aptdaemon reveals that
/usr/share/polkit-1/actions/org.debian.apt.policy is the documents defining the activities feasible on the aptdaemon backend.
Searching in that documents, the
< action id=""> tags define the feasible activities. You 'd possibly desire
org.debian.apt.install-packages to permit customers to install new plans from the archive, and also
org.debian.apt.update-cache to permit customers to upgrade the plan checklists.
man pklocalauthority which records just how to set neighborhood approvals on PolicyKit activities. Placing the adhering to right into
/etc/polkit-1/localauthority/50-local.d/10-allow-users-to-install.pkla will certainly permit any kind of customer visited to the neighborhood equipment to install plans after keying their very own password (also when they're not in the admin team) and also to upgrade the plan cache without keying any kind of password.
[Untrusted Install] Action=org.debian.apt.install-or-remove-packages ResultyAny=no ResultInactive=no ResultActive=auth_self [Untrusted Update] Action=org.debian.apt.update-cache ResultAny=no ResultInactive=no ResultActive=yes
I do not assume it's presently feasible to do so using the GUI, yet the adhering to need to function, albeit be a little kludgy. YMMV.
Add the adhering to line to/ etc/sudoers (usage
sudo visudo to modify the documents) :
%packageinstallers ALL = NOPASSWD: /usr/bin/software-center /usr/bin/apt-get
After that you simply require to create and also add the details customers to the
packageinstallers team :
$ sudo addgroup packageinstallers $ sudo adduser jdoe packageinstallers
jdoe can do the adhering to :
$ sudo apt-get install <some-package>
and also you can modify the desktop computer food selection thing for the Software Center to make sure that it get in touch with
software-center prepending the command with
PolicyKit might permit you to do so without sudo, yet it's past my understanding now.