Prevent Solaris users from changing file ownership (chown)

Home -> UNIX -> Solaris -> Security

10691 views

From the computer of: qmchenry (339 recipes)
Created: Jul 05, 2004     Updated: Jul 17, 2004


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Users are typically able to change the owner of a file that they own. If you consider this a security risk or would like to prevent users from doing this for other reasons, follow the instructions in this recipe.

To prevent users from changing the ownership of their files, add the following line (or change the line if it already exists) in /etc/system:

set rstchown=0


A reboot of the system is required to make the settings take effect. Be careful when editing the /etc/system file as errors in the file can prevent a successful boot. Making a backup of the /etc/system file before making changes can save massive amounts of effort. See this recipe for details.

To allow users to change their file ownership, use the following line in /etc/system:

set rstchown=1

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Adding BANNER information in Solaris ......
  To log all Telnet , FTP Connections to a Solaris Machine
  Change the Solaris telnet banner
  RBAC: Solaris Role Based Access Control basics
  Configuring C-2 Level Security in Solaris
  Solaris: create ssh keys for quick server logins

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.