[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default permissions
- To: Aviram Jenik <aviram(at-nospam)jenik.com>
- Subject: Re: default permissions
- From: Ariel Biener <ariel(at-nospam)fireball.tau.ac.il>
- Date: Sun, 3 Dec 2000 11:25:06 +0200 (IST)
- cc: linux ILUG <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <035b01c05d08$d4d982c0$0201a8c0@aviram>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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 linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
--
Ariel Biener
e-mail: ariel@post.tau.ac.il
PGP(6.5.8) public key http://www.tau.ac.il/~ariel/pgp.html
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il