This article is the second half to the first. I had meant to include it, but
forgot.

Garl

http://www.oreillynet.com/pub/a/bsd/2000/09/13/FreeBSD_Basics.html

"Garl R. Grigsby" wrote:

> I would check out the following article. It was written around BSD, but
> permissions are permissions.
>
> garl
>
> http://www.oreillynet.com/pub/a/bsd/2000/09/06/FreeBSD_Basics.html
>
> Rob Hudson wrote:
>
> > I did an 'ls -l' of my home dir recently, and saw a lot of 's' in
> > the whatever_you_call_that_thing_on_the_left_with_10_characters.
> >
> > Could someone add to my knowledge of these guys?  Here's what I
> > know (some of which may be wrong) ...
> >
> > The first character is used to tell what kind of device it is:
> >   d=directory
> >   b=block device
> >   c=character device
> >   l=symlink
> >
> > The next 9 are broken up into 3's.  The 1st for root, the 2nd for
> > group, and the 3rd for user.  The 1st of each is for read
> > permissions, the 2nd of each is for write permissions, and the 3rd
> > of each is for executable permissions.
> >
> > What I'm not too clear on is the sticky bits, setuid, setgid stuff.
> >
> > I found this in some documentation about the executable bit...
> >
> >     `s'
> >           If the setuid or setgid bit and the corresponding executable
> >           bit are both set.
> >
> >     `S'
> >           If the setuid or setgid bit is set but the corresponding
> >           executable bit is not set.
> >
> >     `t'
> >           If the sticky bit and the other-executable bit are both set.
> >
> >     `T'
> >           If the sticky bit is set but the other-executable bit is not
> >           set.
> >
> >     `x'
> >           If the executable bit is set and none of the above apply.
> >
> >     `-'
> >           Otherwise.
> >
> > But it doesn't explain too much if I don't understand what setuid,
> > setgid, and sticky really mean.  Can someone explain this?
> >
> > Thanks,
> > Rob.
>
> --
> =============================================================================
>
> Garl R. Grigsby
> Senior Customer Applications Engineering - Analysis Team
> -----------------------------------------------------------------------------
>
> Structural Dynamics Research Corporation      Phone: (800)242-7372
> TAO Americas Support Center                   FAX: (541)342-8277
> 1750 Willow Creek Circle                      Email:
> [EMAIL PROTECTED]
> Eugene, OR 97402                              Internet:
> http://www.sdrc.com
> =============================================================================
>
> -FEA makes a good engineer great, and a poor engineer dangerous-
> =============================================================================
>
> PGP ID: 0xF2D845E7
> PGP Fingerprint: 9C40 CB5E 1C51 CF58 E3F9  3F2C 8F1F F3EF F2D8 45E7
> =============================================================================

--
=============================================================================
Garl R. Grigsby
Senior Customer Applications Engineering - Analysis Team
-----------------------------------------------------------------------------
Structural Dynamics Research Corporation      Phone: (800)242-7372
TAO Americas Support Center                   FAX: (541)342-8277
1750 Willow Creek Circle                      Email:  [EMAIL PROTECTED]
Eugene, OR 97402                              Internet:  http://www.sdrc.com
=============================================================================
-FEA makes a good engineer great, and a poor engineer dangerous-
=============================================================================
PGP ID: 0xF2D845E7
PGP Fingerprint: 9C40 CB5E 1C51 CF58 E3F9  3F2C 8F1F F3EF F2D8 45E7
=============================================================================

Reply via email to