Hi!, I need to setup a weston installation
on the tty 1 so i disabled getty@tty1, but when
my systemd service tries to run weston it fails
to do so because polkit wants interactive login even
tho in a normal shell it’s not needed. I managed to
run bash as that user on tty1 using openvt, and i need
to provide my password to reboot, but if i spawn agetty
on that tty and then run bash using openvt i got the polkit
perms. What could be the problem?
I am sure I cannot help but to be clear
You use the TTY and run reboot
in there. This requires a password. Is this a sudo password?
What happens if you run systemctl reboot
instead?
I have an idea this may just have a missing alias, but a very random guess.
I tried both, first says i need interactive login. The systemd one wants me to auth using my password and polkit where normally on the same user but agetty it does work without any authentication.
Bump.
Hello @rebok232 ,
I’m not familiar with agetty in details, but perhaps it’s your bash command, as in do you need to specify an interactive shell in this case?
I spawned root bash, spawned a bash on the target user with pkexe
c, spawned an interactive bash in it but still reboot fails, and systemctl reboot
asks for the password
So you spawn 3 nested bash shells? This does not sound right
Yeah, i also tried spawning one for my user using su and openvt and it still didn’t work. Anyways I found a tutorial on weston’s docs on setting up the session in systemd so the user is fully registered.
can you link this for whoever might want to do the same?
This would probably work for things other than weston too if you modify the user service.