Hi there,
Quote:
Originally Posted by rcmonroig
I log in as max
mkdir info
chmod 701 ./info
ls -l gives me
drwx --- --x max pubs info
|
what's the point of allowing max's group mates nothing at all, and grant "others" the right to enter the new directory, but neither read (i.e. list its contents) nor write to it? I think 701 is a very strange pattern, and it doesn't make sense to me.
Quote:
Originally Posted by rcmonroig
I login as zach and run
ls -ld /home/max/info
I should get:
drwx --- --x max pubs /home/max/info
but I get permission denied
|
Is zach a member of group pubs, too? If so, he doesn't have permission to access the directory in any way. Besides, I think he must also have the permission to enter (execute) /home/max to access another directory below that level.
Quote:
Originally Posted by rcmonroig
should the mode 701 on directory info allow me to list it as long as I name it specifically and use the -ld option?
|
No. To browse a directory (list its contents), you must have 'r' permission on it. You only gave 'x' permission, which means zach might be able to access a file inside /home/max/info directly via its name - assuming the permissions on the higher levels allow this.
I don't know what you intend by these strange things. But if max and zach should work together on a project and have shared access to a common directory, I'd rather create a group for the project, make both users a member of the group, then make the shared directory belong to this group und grant the group members all necessary rights.
[X] Doc CPU