On Tue, 24 Aug 2010 06:18:42 Andrew Colvin wrote:
On Monday 23 August 2010 10:59:56 ian wrote:
Hello, I upgraded both my desktop & laptop from 11.2 to 11.3 without any problems. Last week though, my desktop started throwing file system errors & figured the drive was probably dying. I booted from a live CD & was able to fsck the disk but the system panicked on boot, so I decided to install from scratch on a fresh drive & copy my data across. That all seemed to go will until I tried to hibernate or suspend or to access removable media such as my iPod or flash drives. Basically none of that works unless I login as root (or do sudo pm- hibernate or sudo mount /media/whatever, but then Amarok can't write to the iPod!). After doing some googling & testing, I realised the problem seems to be PolicyKit is preventing access - for instance if I run dbus-send --system --print-reply --dest=org.freedesktop.Hal \ /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0 I get: Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.power-management.suspend auth_admin_keep_always <-- (action, result)
I tried comparing conf files between the old drive & then new system, but can't seem to find any differences that would relate to this. In particular, /etc/PolicyKit/PolicyKit.conf is the same on both - basically empty apart from a <!DOCTYPE> tag, a comment & a version number.
I tried using KDE's System Policies settings but it doesn't seem to let you save any changes.
Can anyone suggest a way to fix this?
Thanks, Ian
I had this exact problem and raised this in the kde list with no joy from anyone. Anyway here is the answer that I discovered and included in the thread
"after running polkit --user ... I found my users had no rights. A bit of investigation and a look in the security (within Yast) section i found that changing the overall security from secure to easy provided me with the appropriate policies."
A
Thanks all of you for the suggestions. I checked the PolicyKit & ConsoleKit packages, I had the following installed: PolicyKit PolicyKit-doc gconf-libpolkit-qt-1-0 polkit polkit-default-privs polkit-gnome polkit-kde-1 ConsoleKit-x11 ConsoleKit That looked to me like it was all there so I reinstalled them & rebooted again. Nothing had changed after doing that, but running sudo polkit-action -- reset-defaults org.freedesktop.hal.power-management.suspend got suspend to ram working. Then I ran the same thing with .hibernate instead of .suspend on the end & hibernate worked. So then I looked at the local security settings in YaST. Under Miscellaneous there was a file permissions setting that was on secure, the other choices being Paranoid & Easy. I didn't really want to change the file permissions, so kept looking & found in 'Predefined Security Configurations' there is the choice of Home Workstation, Networked Workstation, Network Server & Custom Settings. It was on Custom, so I chose Home Workstation & clicked OK. That fixed the device mounting issue, so all is well now! Thanks again for all your suggestions, I guess just doing the latter change would have fixed it but it was useful to go through the other steps anyway. Cheers, Ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org