You are not logged in.

#1 2015-04-23 02:30:22

Incarna
Member
Registered: 2015-03-20
Posts: 2

[SOLVED]how does the access control work?

In my case, my file's permissions are like this:
[binary@utopia abyss]$ ll
total 152
drwxrwxr--  3 abyss users  4096 Apr  9 20:22 Android
drwxrwxr--  2 abyss users  4096 Apr  9 12:59 Desktop
drwxrwxr--  7 abyss users  4096 Apr 16 17:08 Dev
drwxrwxr-- 17 abyss users  4096 Apr 23 10:23 Documents
drwxrwxr--  3 abyss users 12288 Apr 21 19:22 Downloads

and of course the user [binary] is in group [users]

users:x:100:binary,abyss

but when i tried to open a dir i get permission issues:

[binary@utopia abyss]$ cd Dev
-bash: cd: Dev: Permission denied

can somebody help me on this

Last edited by Incarna (2015-04-23 04:31:20)

Offline

#2 2015-04-23 03:38:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED]how does the access control work?

Directories have to have the 'x' flag set.  Apparently binary is not in users.  They are in 'other', but x is not enabled for them.   What is the output of groups when logged in as binary ? 
I note that you posted something that looks like a line from /etc/passwd, but unless binary has logged out and back in, it does not count.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-04-23 04:30:52

Incarna
Member
Registered: 2015-03-20
Posts: 2

Re: [SOLVED]how does the access control work?

ewaller wrote:

Directories have to have the 'x' flag set.  Apparently binary is not in users.  They are in 'other', but x is not enabled for them.   What is the output of groups when logged in as binary ? 
I note that you posted something that looks like a line from /etc/passwd, but unless binary has logged out and back in, it does not count.

okay i forgot to log out after updating the user’s group.

thanks for helping ^ ^

Offline

Board footer

Powered by FluxBB