On Sun, 3 Dec 2000, Aviram Jenik wrote:


Ok. Do you only one permissions or ownership too ?


You can control permissions with umask (man umask), but not as directory
feature. (you'll need to manipulate umask before creating the files in
that directory).

If you have a case where you want to create files with the group
automatically set to a certain group, use the sticky bit:

drwxrsxr-x 1    root    somegroup       4096    {DATE HERE}     dir/

when you do touch dir/file, it will be created with group=somegroup.

If you do umask 002, it will be created with ug+rw,o+r  (example).


--Ariel


> A simple question:
> 
> I want all the files that are created in a certain directory to have a
> default permission (e.g. ug+rwx, o+rx) as soon as they're created. This
> default should be different from other directories (i.e. I don't want to
> change the system's default).
> 
> How can I do that?
> 
> Thanks.
> 
> - Aviram
> 
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

--
Ariel Biener
e-mail: [EMAIL PROTECTED]
PGP(6.5.8) public key http://www.tau.ac.il/~ariel/pgp.html


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to