[NBLUG/talk] FTP, directories,ownership, permissions

troy fryman at sonic.net
Fri Aug 29 16:21:02 PDT 2003


On Fri, Aug 29, 2003 at 05:35:28AM -0700, Todd Cary wrote:
> I have a directory structure on my server that is giving me a problem - 
> probably because I did not seek some advice BEFORE setting it up.
> 
> Here is a brief outline of what I have and I would appreciate any 
> comments on mistakes I may have had made, AFTER the fact:
> 
> /home is owned by root and is part of the root group.  Permissions are 
> "rwxr-xr-x" (I am going to have to learn octal :-) ).

It's easy :)  (r)ead is 4 bits, (w)rite is 2, e(x)ecute is 1
The rest is addition...

(rwx)  (r-x)  (r-x)  = (4+2+1) (4+1) (4+1)
(user)(group)(other) =    7      5     5

> All user directories are owned by the user and are part of group "adm".  
> The permissions are "rwxrwxr-x".
> 
> "httpd" is one of the users and this is the base or root directory for 
> http.  All directories under "httpd" are owned by "todd" and are part of 
> the "adm" group.  The permissions are "rwxrwxr-x".
> 
> FTP question:
> 
> I have a user "darren".  He can FTP into his directory and any 
> directories under his directory - as expected.  There is an application 
> under "httpd" called "newsearch" (as stated above, owned by "todd" and 
> is part of the "adm" group).  I would like to give "darren" the ability 
> to FTP into that directory.
> 
> have I created a monster, or can it be fixed?

Your permissions as described should allow this.  That is, 'other' has
execute permission so can cd into the dir. and read permission to list
it.  Perhaps "darren" is set up in a chrooted environment, which makes
the rest of the filesystem completely unavailable regardless of
permissions.

Nice job in providing complete information.

-troy




More information about the talk mailing list