[SUMMARY] Chown Problem.....

From: matthew.d.romero@ac.com
Date: Wed Jun 09 1999 - 12:55:46 CDT

Thanks to all who replied. Too many to list. Everybody pretty gave me the same
answer. My original question was how can I let a non root user give away
fermissions on a file. The following is a complete answer from Suzanne Taylor.

Thanks again to everybody for the quick responses.

The default behaviour of chown is to allow only root to do a chown.
If you want to change it set the following in your /etc/system and reboot:

         set rstchown = 0

Excerpt from the chown man page below:


     The operating system has a configuration option
     {_POSIX_CHOWN_RESTRICTED}, to restrict ownership changes.
     When this option is in effect the owner of the file is
     prevented from changing the owner ID of the file. Only the
     super-user can arbitrarily change owner IDs whether or not
     this option is in effect. To set this configuration option,
     include the following line in /etc/system:

          set rstchown = 1

     To disable this option, include the following line in

          set rstchown = 0

     {_POSIX_CHOWN_RESTRICTED} is enabled by default. See sys-
     tem(4) and fpathconf(2).

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:21 CDT