On 03/09/16 12:59, Thanos Baloukas wrote:
On 03/09/2016 01:28 μμ, spiky wrote:


On 03/09/16 09:14, Thanos Baloukas wrote:
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
   as user

|loginctl show-session $XDG_SESSION_ID Id=1 User=1000 Name=spiky
Timestamp=Sat 2016-09-03 08:52:34 BST TimestampMonotonic=17013282 VTNr=1
Seat=seat0 TTY=/dev/tty1 Remote=no Service=login Scope=session-1.scope
Leader=2070 Audit=1 Type=tty Class=user Active=no State=online
IdleHint=yes IdleSinceHint=1472889146699580 IdleSinceHintMonotonic=0
LockedHint=no|

Mine was on a xfce session on a terminal. On a tty I have

Active=yes
State=active

It seems that something is wrong or missing on your session.
Initially I would review the journal with journalctl and run

systemctl status systemd-logind.service

Then I would make sure the X session is started on the same tty
I login to. I have never used LXDE. If it creates some log review that too.




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
        as user from problem machine||

|ps -ef | grep -i polkit spiky 2160 2137 0 08:52 tty1 00:00:00 lxpolkit
polkitd 2175 1 0 08:53 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
spiky 2324 2309 0 11:10 pts/0 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.


 Hi Thanos, Followed your advice in xorg server systemd-logind

Put in ~/.xserverrc

#!/bin/sh

exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR

Fixed my error as well thks, so something is a miss some where it seems?

--
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