This is a theoretical scenario that has come up as part of another question:
- I have x Ubuntu desktops with x users.
- Users don't have sudo privs
- I can let them install things through the software center by editing the Policy Kit rules
- But that would let them install anything (inc games) which is not desirable.
I'm wondering if there's a hack that would be able to limit what sorts of things a user can install.
Packages have a "section" (eg games) so I was wondering if it would be possible to force apt
to ignore a whole section of packages. Or perhaps a way of setting up an Apt proxy that does this filtering. Changes can be global (eg even somebody with sudo privs won't be able to install games).
Any ideas welcome.
Before you leave a comment telling me people could just bring their own debs with them, or download tars from the Internet and run them that way, please remember this a theoretical situation.
If it means you'll focus on the question, pretend that my users aren't allowed USB mounts, can't execute things in ~/
and don't have write permissions outside their home. It's locked down. And yes, all of that can be done.
/etc/apt/preferences
and/etc/apt/preferences.d/
You canpin
packages here (but can not use wildcards or sections... so you would need to add them all...). http://manpages.ubuntu.com/manpages/oneiric/man5/apt_preferences.5.html – Rinzwind Dec 16 '11 at 12:58install --list-all
,install <stuff>
). It probably didn't use any repositories, though. – htorque Dec 17 '11 at 01:52