On 03/09/2016 10:09 πμ, spiky wrote:


On 02/09/16 22:43, Thanos Baloukas wrote:
On 02/09/2016 11:26 μμ, spiky wrote:
Hi


I have an issue with shutdown/reboot using LXDE systemd.

I have installed Linux pam, Polkit on top of lxde systemd, and when I
try to shutdown/reboot it asks for root password.

I have built this before the same way but never come across this.
Googling seems to point to polkit problem/bug, they give options to edit
files. I have checked these files against my other 1,s they are the same
as I have, I reinstalled polkit made no difference

Does this happen when you shutdown/reboot through the menu
or on command line?
It happens from the lxde logout. From a terminal it would be root
anyway, which is correct.

If the user session is setup correctly, user can shutdown/reboot
on command line as well.

Check your X session:
$ loginctl show-session $XDG_SESSION_ID

|loginctl show-session $XDG_SESSION_ID EnableWallMessages=no NAutoVTs=6
KillUserProcesses=yes RebootToFirmwareSetup=no IdleHint=no
IdleSinceHint=1472882400406219 IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s HandlePowerKey=poweroff HandleSuspendKey=suspend
HandleHibernateKey=hibernate HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore HoldoffTimeoutUSec=30s IdleAction=ignore
IdleActionUSec=30min PreparingForShutdown=no PreparingForSleep=no
Docked=no RemoveIPC=yes RuntimeDirectorySize=357683200
InhibitorsMax=8192 NCurrentInhibitors=0 SessionsMax=8192
NCurrentSessions=1 UserTasksMax=10813|

Did you do that as root? If so try as spiky. I get

$ loginctl show-session $XDG_SESSION_ID
Id=c2
User=1000
Name=thanos
Timestamp=Σαβ 2016-09-03 10:47:17 EEST
TimestampMonotonic=32217114
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=lightdm
Desktop=xfce
Scope=session-c2.scope
Leader=508
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0



Check if polkitd and polkit authentication deamons are running:
ps -ef | grep -i polkit
Yes polkit  deamons are running
spiky     2100  2070  0 06:51 tty1     00:00:00 lxpolkit
polkitd   2117     1  0 06:51 ?        00:00:00
/usr/lib/polkit-1/polkitd --no-debug
root      2366  2346  0 07:09 pts/2    00:00:00 grep --color=auto -i polkit


Is it the same on your working systems?

I recall that I had problems in the past because the
/usr/share/polkit-1/rules.d directory and it's contents
where not under polkitd user and group ownership.

  drwxr-xr-x 2 root    root 4096 Sep 2 20:46 actions
drwx------ 2 polkitd root    6 Aug 29 20:57 rules.d

There aren't any rules in rules.d.

There are ways listed on google how to hack around it, "edit files"
which I never had to do before.
Same polkit version on other machines as well, which works.



--
Thanos
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to