Read permission for group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

user 1001 (chuser) is in the group of user 1000 (rocketmouse). Folder
and file have read permission for group 1000 (rocketmouse), but user
1001 (chuser) can't read the file.

Do I miss the forest for the trees?

[rocketmouse@archlinux ~]$ id chuser
uid=1001(chuser) gid=1001(chuser)
groups=1001(chuser),10(wheel),50(games),91(video),92(audio),93(optical),95(storage),100(users),1000(rocketmouse),108(vboxusers)

Path and file permissions

[rocketmouse@archlinux ~]$ ls
-ld /home/ /home/rocketmouse/ /home/rocketmouse/.gtkrc-2.0_openbox+jwm
drwxr-xr-x   4 root        root        4096 Apr 23 10:14 /home/
drwxr----- 100 rocketmouse rocketmouse 4096 May 15
17:22 /home/rocketmouse/ -rw-r--r--   1 rocketmouse rocketmouse  152
Oct 16  2014 /home/rocketmouse/.gtkrc-2.0_openbox+jwm

Permission denied

[rocketmouse@archlinux ~]$ sudo -u chuser ls
-ld /home/rocketmouse/ /home/rocketmouse/.gtkrc-2.0_openbox+jwm ls:
cannot access /home/rocketmouse/.gtkrc-2.0_openbox+jwm: Permission
denied drwxr----- 100 rocketmouse rocketmouse 4096 May 15
17:22 /home/rocketmouse/

[rocketmouse@archlinux ~]$ sudo -u chuser
cat /home/rocketmouse/.gtkrc-2.0
cat: /home/rocketmouse/.gtkrc-2.0: Permission denied

This happens also when logged in as user 1001 (chuser) instead of
using sudo -u, take a look at
https://bbs.archlinux.de/viewtopic.php?id=27969, it's in German, but
that doesn't matter regarding the English terminal output.

Regards,
Ralf


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux