[TriLUG] redhat 2.1 chown problem

Marvin Blackburn mblackburn at glenraven.com
Thu Mar 18 15:38:59 EST 2004


This is good to know.  Many thanks for your help.

------------------
Marvin Blackburn
Systems Administrator
Glen Raven
"He's no failure.  He's not dead yet" --William Lloyd George

> -----Original Message-----
> From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org]On
> Behalf Of Ken Mink
> Sent: Thursday, March 18, 2004 1:27 PM
> To: jonc at nc.rr.com; Triangle Linux Users Group discussion list
> Subject: Re: [TriLUG] redhat 2.1 chown problem
> 
> 
> From The Stevens Book:
> 'If _POSIX_CHOWN_RESTRICTED is in effect for the specified file, then:
> 1. only a superuser process can change the user ID of the file;
> 2. a nonsuperuser process can change the group ID of the file if
>   a. the process owns the file (the effective user ID equals 
> the user ID
> of the file and,
>   b. *owner* equals the user ID of the file and *group* equals either
> the effective group ID of the process or one of the process's
> supplementary group IDs.
> 
> This means that when _POSIX_CHOWN_RESTRICTED is in effect you can't
> change the user ID of other user's file. You can change the 
> group ID of
> files you own, but only to groups you below to."
> 
> From /usr/include/bits/posix_opt.h on my FC1 machine:
> #define   _POSIX_CHOWN_RESTRICTED 1
> 
> Hope this helps.
> Ken
> -- 
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety."--Benjamin Franklin
> " 'Necessity' is the plea for every infringement of human liberty; it
> is the argument of tyrants; it is the creed of slaves."--William Pitt 
> 
> 
> 



More information about the TriLUG mailing list