[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: standard filepermissions



On Tue, Jun 19, 2001 at 07:06:45PM +0200, bernd b wrote:
> In DEBIAN new directories are made
> drwxr-sr-x. Of course this can be changed with umask
> But where is the default file permission and the setgid bit set?
> How should i create dirs which are default drwxr-xr-x; without the gid bit 
> set?
> 
> Also some dirs do not have execute permission for group and then have
> drwxr-S***. Why is this "S", and why have the setgid on anyway when group 
> itself cannot execute, thus groupid cannot be set?

sgid on directories causes all files within the directory to be created with
the same group ownership as the directory itself.  This is generally a Good
Thing for directories where users are allowed to create files.

-- 
That's not gibberish...  It's Linux. - Byers, The Lone Gunmen
Geek Code 3.12:  GCS d? s+: a C++ UL++++$ P++>+++ L+++>++++ E- W--(++) N+
o+ !K w--- O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv+ b+ DI++++ D G e* h r y+



Reply to: