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.

I'm using Ubuntu 10.10. The software center was asking me for password when I wanted to install/remove any application. Since last week, it doesn't prompt for password. Also, I have the same problem with update-manager. However, Synaptic and sudo apt-get ask for password.
How to fix this?

this is link to the files that you guys need to know

sudoers file

/etc/polkit-1

/usr/share/polkit-1/actions/org.debian.apt.policy

sudo grep -IR '^[^#]' /var/lib/polkit-1

grep '^[^#]' /etc/apt/apt.conf.d/20dbus /etc/dbus-1/system.d/org.debian.apt.conf /usr/share/dbus-1/system-services/org.debian.apt.service

share|improve this question
    
What is the output of your /etc/sudoers file? –  user6658 Jan 21 '11 at 20:05
1  
That's unreadable without the newlines, and it seem to be missing the last part. Could you put that in your question instead? Also, keep in mind that once you type in the password once, it'll "remember" it for about 15 minutes. –  geirha Jan 21 '11 at 21:52
    
The difference between update-manager/software center and synaptic/apt-get is the policykit integration in the former pair -- the issue may lie there –  jasonbrooks Jan 21 '11 at 23:45
    
@geirha I know it will remember the password for 15 minutes but the last time i put the password was last week! –  aziz joh Jan 22 '11 at 4:06
    
@jasonbrooks how I can check it if the issues there or not? what I have to do? –  aziz joh Jan 22 '11 at 4:07
show 1 more comment

1 Answer

up vote 6 down vote accepted

As already said, the problem may be your PolicyKit configuration. I would be interested in the contents of the files in /etc/polkit-1 directory and the file /usr/share/polkit-1/actions/org.debian.apt.policy. The output can be lengthy, so you may want to compress it and upload it somewhere rather than copy it here...

grep -IR '^[^#]' /etc/polkit-1

cat /usr/share/polkit-1/actions/org.debian.apt.policy

EDIT: After you've uploaded the files I can see that the problem is in your /var/lib/polkit-1/localauthority/50-local.d/20-xbmclive.pkla file which seems to have been installed by XBMC and effectively turns off all authentication via polkit (why it has done so and if it is really needed I don't know, I don't use this software).

[XBMC-Live user permissions]
Identity=unix-user:azizjoh
Action=*
ResultAny=no
ResultInactive=no
ResultActive=yes
share|improve this answer
    
I upload it as a GoogleDoc see the link Up at the end of the question thanks –  aziz joh Jan 22 '11 at 20:49
1  
I don't see in the output any reason why it should not work... Could you also post sudo grep -IR '^[^#]' /var/lib/polkit-1 and grep '^[^#]' /etc/apt/apt.conf.d/20dbus /etc/dbus-1/system.d/org.debian.apt.conf /usr/share/dbus-1/system-services/org.debian.apt.service? –  arrange Jan 22 '11 at 22:44
    
I add it to the question –  aziz joh Jan 22 '11 at 23:09
    
see my edit in the original answer –  arrange Jan 22 '11 at 23:23
1  
I comment all the lines in the file that you said to me. XBMC still work and the software center prompting for password thanks –  aziz joh Jan 23 '11 at 0:51
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.