fondo icon indicating copy to clipboard operation
fondo copied to clipboard

Permission Errors

Open btd1337 opened this issue 6 years ago • 13 comments

screenshot from 2018-08-25 02-12-21

screenshot from 2018-08-25 02-12-47

btd1337 avatar Aug 25 '18 05:08 btd1337

@btd1337 Can you provide the permissions of /var/lib/lightdm-data/arch Also the owner and group.

worldofpeace avatar Sep 20 '18 15:09 worldofpeace

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

btd1337 avatar Sep 24 '18 18:09 btd1337

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?

worldofpeace avatar Sep 24 '18 19:09 worldofpeace

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 -

btd1337 avatar Oct 06 '18 23:10 btd1337

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.

worldofpeace avatar Oct 06 '18 23:10 worldofpeace

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 avatar Oct 07 '18 01:10 calo001

@calo001 https://medium.com/@helder.bertoldo/arch-linux-e-pantheon-combina%C3%A7%C3%A3o-perfeita-ca8f5945ae

btd1337 avatar Oct 09 '18 02:10 btd1337

@btd1337 since the app is trying to access those directories so may be you can try adding yourself to 'lightdm' group?

jiteshsingh avatar Jan 31 '19 12:01 jiteshsingh

@jiteshsingh This should not be the expected behavior, correct?

btd1337 avatar Feb 01 '19 02:02 btd1337

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

jiteshsingh avatar Feb 01 '19 09:02 jiteshsingh

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

calo001 avatar Feb 04 '19 03:02 calo001

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.

jiteshsingh avatar Feb 04 '19 18:02 jiteshsingh

same problem

gudge25 avatar Apr 28 '21 20:04 gudge25