Friday, February 18, 2011

Restricting users from changing ownership

The default for Unix systems is that users can't change the ownership of files. 
To enable "chown" on files for non-root users, rstchown parameter has to be adapted in /etc/system file.

The setting of 1 would not allow non-root users to use chown.
set rstchown=1

The setting of 0 would allow non-root users to use chown.
set rstchown = 0

root@MyServer # vi /etc/system
"/etc/system" 94 lines, 2153 characters
*ident  "@(#)system     1.18    97/06/27 SMI" /* SVR4 1.5 */
*
* SYSTEM SPECIFICATION FILE
*
* moddir:
~



set noexec_user_stack=1
set rstchown = 0
~
~
~
"/etc/system" 95 lines, 2170 characters
root@MyServer #

No comments:

Post a Comment