[RHCE] umask

Jon Carnes jonc at nc.rr.com
Tue Jun 29 10:28:30 EDT 2004


On Mon, 2004-06-28 at 22:22, somnath123s wrote:
> hey everyone!!
> 
> is there any way to give "umask" separately to files and directory?
> 

That doesn't make sense to me. Umask sets the default rights mask for
newly created files and directories. It doesn't make sense to apply it
to already created files.

You want the file/directory rights to stay the same as they currently
are set?  

If you are using Samba to access the files or directories you can use
the "force" option to force various rights and ownerships. 

You can also use the chattr command to set some interesting rights. Use
lsattr to view those rights.





More information about the RHCE mailing list