[CentOS] directory permissions set to 600?

Fernando Gleiser fergleiser at yahoo.com
Wed Jul 21 11:23:14 UTC 2010



----- Original Message ----
> From: Robert Heller <heller at deepsoft.com>
> To: CentOS mailing list <centos at centos.org>
> Cc: CentOS mailing list <centos at centos.org>
> Sent: Tue, July 20, 2010 9:17:28 PM
> Subject: Re: [CentOS] directory permissions set to 600?
> 
> > 
> > um... on a directory, the X bit means you can LS the  contents of the 
> > directory.   of course, root ignores this anyways  and overrides it.
> 
> Note that execute access is only needed on a directory  if you want to
> list its contents (eg ls).  If you know ahead of time the  name of the
> file in the directory you seek to access, you don't need execute  access
> on the directory.  Not having execute access on a directory  keeps
> 'noisy' people from discovering the contents of the directory.   This is
> a not unreasonably security setting.


Nope. for dirs, 'w' means "you can create and delete files" (because creating 
and deleting files means inserting and removing entries in the dir), "r" means 
"you can list the dir" (which makes sense, since what 'ls' does is reading the 
dir entries. 'x' means "you can cd into the directory) 




Fer



      



More information about the CentOS mailing list