You are not logged in.

#1 2015-07-17 15:48:16

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

[SOLVED] Folder permissions for other users

Hello.

I have the following strange problem. I have tree users. 'alex', 'guest' and '_fire'
Now, the 'guest' user from his home and every directory I had rw permission and I had no problem to view his files as 'alex' user.
Yesterday I added '_fire' user and I set permissions o+r. I tried to view his files as 'alex' but I had no permission.
After that strange problem, I set 'guest' user o-rw and again o+rw and I have the same problem like '_fire' files.

To give you an example:
My /home is:

 ls -l
total 36
drwxr-x--- 48 alex  alex   4096 Jul 17 18:19 alex
drwxr-xr-- 10 _fire fire   4096 Jul 17 17:18 _fire
drwxr-x--- 35 guest guest 12288 Jul 16 21:44 guest
drwx------  2 root  root  16384 Jan 31 21:42 lost+found

As 'alex':

ls -la _fire/
ls: cannot access _fire/.macromedia: Permission denied
ls: cannot access _fire/.bash_profile: Permission denied
ls: cannot access _fire/Desktop: Permission denied
ls: cannot access _fire/..: Permission denied
ls: cannot access _fire/.local: Permission denied
ls: cannot access _fire/.: Permission denied
ls: cannot access _fire/.dbus: Permission denied
ls: cannot access _fire/.config: Permission denied
ls: cannot access _fire/.bash_logout: Permission denied
ls: cannot access _fire/.cache: Permission denied
ls: cannot access _fire/.bash_history: Permission denied
ls: cannot access _fire/Downloads: Permission denied
ls: cannot access _fire/.bashrc: Permission denied
ls: cannot access _fire/.mozilla: Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
-????????? ? ? ? ?            ? .bash_history
-????????? ? ? ? ?            ? .bash_logout
-????????? ? ? ? ?            ? .bash_profile
-????????? ? ? ? ?            ? .bashrc
d????????? ? ? ? ?            ? .cache
d????????? ? ? ? ?            ? .config
d????????? ? ? ? ?            ? .dbus
d????????? ? ? ? ?            ? Desktop
d????????? ? ? ? ?            ? Downloads
d????????? ? ? ? ?            ? .local
d????????? ? ? ? ?            ? .macromedia
d????????? ? ? ? ?            ? .mozilla

and as '_fire':

ls -la _fire/
total 56
drwxr-xr-- 10 _fire fire 4096 Jul 17 17:18 .
drwxr-xr-x  6 alex  alex 4096 Jul 17 17:43 ..
-rw-r-xr--  1 _fire fire  944 Jul 17 17:53 .bash_history
-rw-r-xr--  1 _fire fire   21 May 20 00:20 .bash_logout
-rw-r-xr--  1 _fire fire   57 May 20 00:20 .bash_profile
-rw-r-xr--  1 _fire fire  165 Jul 16 21:51 .bashrc
drwxr-xr--  6 _fire fire 4096 Jul 16 23:06 .cache
drwxr-xr--  4 _fire fire 4096 Jul 16 23:06 .config
drwxr-xr--  3 _fire fire 4096 Jul 16 22:30 .dbus
drwxr-xr-x  2 _fire fire 4096 Jul 16 22:02 Desktop
drwxr-xr--  2 _fire fire 4096 Jul 16 22:48 Downloads
drwx--xr--  3 _fire fire 4096 Jul 16 23:06 .local
drwx---r--  3 _fire fire 4096 Jul 17 17:18 .macromedia
drwxr-xr--  4 _fire fire 4096 Jul 16 22:09 .mozilla

id for '_fire' user are: uid=1002(_fire) gid=1002(fire) groups=1002(fire),91(video),92(audio)
id for 'alex' user are: uid=1000(alex) gid=1000(alex) groups=1000(alex)

I downgrade 'coreutils' from 8.24-1-x86_64 to 8.23-2-x86_64 without success.
My partitions are encrypted with LUKS.


What do I miss?

Last edited by alex.theoto (2015-07-17 18:26:27)

Offline

#2 2015-07-17 15:52:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,582

Re: [SOLVED] Folder permissions for other users

You need execute permissions on a directory to get a list.

Offline

#3 2015-07-17 18:25:58

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [SOLVED] Folder permissions for other users

That was fast and simple reply.
Thank you very much. Problem solved.
I misunderstood the executable permission. Still learning...

Offline

Board footer

Powered by FluxBB