[TriLUG] redhat 2.1 chown problem

Ken Mink kmtrilug at nc.rr.com
Thu Mar 18 13:27:09 EST 2004


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 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20040318/b88ce1a9/attachment.pgp>


More information about the TriLUG mailing list