Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2010 20:01:16 +0200
From:      Polytropon <freebsd@edvax.de>
To:        doug@safeport.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: unix permissions questions
Message-ID:  <20100914200116.23a34732.freebsd@edvax.de>
In-Reply-To: <alpine.BSF.2.00.1009141324020.26109@oceanpt.safeport.com>
References:  <alpine.BSF.2.00.1009141324020.26109@oceanpt.safeport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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":

"s" in the owner permissions = file is executable and set-user-ID mode is set

"S" in the group permissions = file is not executable and set-group-ID mode is set

"T" in the other permission = sticky bit is set, but not execute
                              or search permission.

Result: User can execute SUID, group cannot execute, others cannot search
or execute; sticky bit is set.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100914200116.23a34732.freebsd>