sticky bits & daemons

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
Subject: sticky bits & daemons
On Tue, 30 Dec 2003, Craig White wrote:

> So I chmod o+s,g+s /var/named and /var/ldap
>
> the sticky bit on group works but not on owner. Is there something that
> I'm missing?


"o" is not owner. The owner is "u" for user. "o" is for others.

The "s" is not for sticky bit. The "s" is for set-user-ID and
set-group-ID. That explains it. You can set it for user and group but not
others.

You want the "t" option, like:

chmod +t /var/named /var/ldap

The "t" (for sticky) is not used for user, group, or other.

It is often easier just to use the octal modes.

Jeremy C. Reed
http://bsd.reedmedia.net/