Hi Everyone,
I have a problem with accessing directory by the user that has a full access to this directory. So here is my setup:
there are two regular users: dkitel and cosiek and group called local.
cosiek wants to share /home/cosiek/1 directory to dkitel giving full access to local group(group that dkitel belongs to)
------
from cosiek standpoint it looks like this:
------------------------
[cosiek@plk-dkitel-fedora-01 ~]$ ls -l /home/
total 28
drwxrwx---. 6 cosiek local 4096 2010-11-28 04:42 cosiek
drwx------. 36 dkitel dkitel 4096 2010-11-28 04:23 dkitel
drwxrwx---. 6 gucio gucio 4096 2010-11-28 04:30 gucio
drwx------. 2 root root 16384 2010-10-05 00:21 lost+found
[cosiek@plk-dkitel-fedora-01 ~]$ ls -l /home/cosiek
total 8
drwxrwx---. 3 cosiek local 4096 2010-11-28 04:42 1
drwxrwxr-x. 2 cosiek cosiek 4096 2010-11-28 04:42 2
[cosiek@plk-dkitel-fedora-01 ~]$ ls -l /home/cosiek/1/
total 4
drwxrwx---. 2 cosiek local 4096 2010-11-28 04:42 1.1
[cosiek@plk-dkitel-fedora-01 ~]$
------
from dkitel standpoint it looks like this:
[dkitel@plk-dkitel-fedora-01 home]$ cat /etc/group | grep local
local:x:503:dkitel,gucio
[dkitel@plk-dkitel-fedora-01 home]$ groups dkitel
dkitel : gucio dkitel local
[dkitel@plk-dkitel-fedora-01 home]$ cd /home/cosiek/1
bash: cd: /home/cosiek/1: Permission denied
[dkitel@plk-dkitel-fedora-01 home]$ ls -l /home/cosiek/
ls: cannot open directory /home/cosiek/: Permission denied
[dkitel@plk-dkitel-fedora-01 home]$
--------------------------
and now my question: why dkitel does not have access to /home/cosiek/ ?
dkitel belongs to local group and /home/cosiek directory is fully accessible for local group
Thank you,
Daniel




Reply With Quote
