Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is similar to How to prevent system applications (like the Software Center) from asking for password? However that solution does not work for Synaptic Package Manager in 10.04.

share|improve this question
2  
I know you what you want to achieve, and you might have heard this before, but: This is not a good idea. –  user6658 Feb 10 '11 at 21:55
    
@chauncellor -- Why is this necessarily a bad idea? Is this not a situation where rational risk assessment can be employed? –  belacqua Feb 11 '11 at 0:23
    
Like all things, assessment is up to the administrator. Normally I could understand disabling such a thing for offline boxes but obviously you are online. Policies are there for a reason and when you circumvent security measures you are sacrificing a portion of safety. Whether or not it's worth the risk is up to you. But you are asking to be granted infinite root access for a program - something that could be exploited should any with malicious intent decide to target you. –  user6658 Feb 11 '11 at 5:13
add comment

1 Answer 1

up vote 3 down vote accepted

The Software Centre falls on PolicyKit for its permissions. This allows the fine grain permissions you've seen. Synaptic does not. Like the command line tools, it needs to run as root.

The most simple way to allow a user access to it without having to type their password is by editing /etc/sudoers. This would allow you to set certain sudo commands to not require a password.

username  ALL=(ALL) ALL, NOPASSWD: /usr/sbin/synaptic

Nabbed from here.

You might then have to edit the launcher from gksu synaptic to sudo synaptic. But you might not.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.