fondo
fondo copied to clipboard
Permission Errors
@btd1337
Can you provide the permissions of /var/lib/lightdm-data/arch
Also the owner and group.
In /arch
drwxr-xr-x 2 0 0 4096 jul 14 22:34 wallpaper
In /arch/wallpaper
drwxr-xr-x 2 root root 4096 jul 14 22:34
Yeah those permissions are all wrong. See https://git.archlinux.org/svntogit/packages.git/tree/trunk/lightdm.tmpfiles?h=packages/lightdm.
Does this file exist /usr/lib/tmpfiles.d/lightdm.conf
?
Yes,
d /run/lightdm 0711 lightdm lightdm 0
d /var/cache/lightdm 0711 root lightdm -
d /var/lib/lightdm 1770 lightdm lightdm -
d /var/lib/lightdm-data 1770 lightdm lightdm -
d /var/log/lightdm 0711 root lightdm -
Just to be sure, those directories are those exact permissions?
I'm not sure if /var/lib/lightdm-data/username/wallpaper
is volatile so maybe you can try deleting it and recreating the subdirs with the correct permissions.
Sorry guys, someone will have a guide to use pantheon in arch, that way I can give a clearer idea of how to solve this issue. :sos:
@calo001 https://medium.com/@helder.bertoldo/arch-linux-e-pantheon-combina%C3%A7%C3%A3o-perfeita-ca8f5945ae
@btd1337 since the app is trying to access those directories so may be you can try adding yourself to 'lightdm' group?
@jiteshsingh This should not be the expected behavior, correct?
@btd1337 correct.
@calo001 I'm using pantheon on arch.
Owner for directory /var/lib/lightdm-data/
is lightdm:lightdm
and permissions are drwxrwx--T
Will it be possible to use polkit authentication?
@btd1337 @jiteshsingh For the moment it would be the only solution (polkit authentication), although it could be reported as an issue to the elementary team and see what answer they give.
I tried using pkexec (polkit) to run as root (was just trying out with root first), but it did not display any images due to some reason. Will find and post more details as I find some time. But my main concern is if we use polkit and run the app as another user (lightdm in this case), gsettings will update wallpaper for that particular user not me.
So for now I've just added myself to lightdm group, since anyway we are trying to manipulate files generated by lightdm so it kinda makes sense to do so.
same problem