Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2010 11:04:58 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        doug@safeport.com, freebsd-questions@freebsd.org
Subject:   Re: unix permissions questions
Message-ID:  <B3697A31-7525-42D9-BAD7-93FCADF6F960@mac.com>
In-Reply-To: <20100914200116.23a34732.freebsd@edvax.de>
References:  <alpine.BSF.2.00.1009141324020.26109@oceanpt.safeport.com> <20100914200116.23a34732.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 14, 2010, at 11:01 AM, Polytropon wrote:
> On Tue, 14 Sep 2010 13:32:40 -0400 (EDT), doug@safeport.com wrote:
>> I found several directories whose permissions where set to
>> 
>>   dr-s--S--T   2 user group   512 Feb 22  2010 .procmail/
>> 
>> All were .procmail which is what we set for procmail logging and supporting 
>> recipes. In reading 'man ls' it seems (to me) this might result from losing the 
>> execute bit on the directory. Is this correct? Been BSDing since 1995 and have 
>> not seen this set of permissions. Thanks for any insights.
> 
> After a short read of "man ls":
[ ... ]
> Result: User can execute SUID, group cannot execute, others cannot search
> or execute; sticky bit is set.

Except that this is a directory, not a file....  :-)

A bit of experimentation suggests that "chmod 7500 .procmail" are the permissions involved, which are silly.  No group permissions enabled means setgid is meaningless, and I don't see any value for using the sticky bit here, either.  Try using 0500, 0700, or maybe 4500/4700 instead.

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B3697A31-7525-42D9-BAD7-93FCADF6F960>