[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Chmod Differences drwxr-xr-x --and-- drwxr-sr- x
- Subject: RE: [cobalt-users] Chmod Differences drwxr-xr-x --and-- drwxr-sr- x
- From: Brandon Wheaton <brandonw@xxxxxxxxxxxx>
- Date: Sat Feb 24 21:37:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> -----Original Message-----
> From: Craig Napier [mailto:craignapier@xxxxxxxxxxx]
>
> What's the difference between:
>
> drwxr-xr-x --and-- drwxr-sr-x
>
> I noticed that all files restored via CMU now sport the "s"
> instead of the
> previous "x".. I know the "x" means execute, but don't have a
> clue about the
> "s" designation.
>
Hi.
The "s" designates that file/dir as "sticky" and is called the sticky
bit. The sticky bit makes sure that Users in a group must have write
access to a directory and must own a file, or be root, to unlink/remove
it if it is sticky. You can set sticky with a "1" preceeding the normal
file access mask like so: chmod 1755 file.txt
Take care.
Brandon Wheaton
UNIX Systems Engineer
ValiCert, Inc.
1215 Terra Bella Ave.
Mountain View, CA 94043
650.280.UNIX
----
Sure UNIX is user friendly; it's just picky about who its friends are.