The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to set the name of the group and the owner while creation of the file? nehak UNIX for Dummies Questions & Answers 2 04-23-2008 05:26 AM
determine owner of a file unibboy Shell Programming and Scripting 4 01-26-2008 11:39 AM
change owner of a file CBarraford UNIX for Dummies Questions & Answers 3 03-03-2007 08:37 PM
How to change the owner of the file? redlotus72 UNIX for Dummies Questions & Answers 1 09-21-2006 08:31 PM
changing owner & grp of a file Sabari Nath S UNIX for Advanced & Expert Users 1 09-27-2005 09:08 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-16-2007
Registered User
 

Join Date: Dec 2007
Location: Brisbane, Australia
Posts: 7
Owner of file gets 'not owner' error for chgrp

Hi Folks,

I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error.

For example, when I am logged in as 'webadmin', I have the following file:

-rwxrwxr-x 1 webadmin other 0 Dec 17 12:00 zzz_info.php

I want to change group from other to www, so I run:

chgrp www zzz_info.php

I get this error:

chgrp: changing group of `zzz_info.php': Not owner

I have read somewhere that "More recent versions" of solaris only enable root to change permissions by default, but as per instructions I have gone and set "set rstchown=1" in /etc/system.

This is something I've never dealt with before, so any help would be appreciated.
Reply With Quote
Forum Sponsor
  #2  
Old 12-16-2007
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 734
Post

Quote:
Originally Posted by brizrobbo View Post
I have read somewhere that "More recent versions" of solaris only enable root to change permissions by default, but as per instructions I have gone and set "set rstchown=1" in /etc/system.
Try setting it to 0 instead. Setting it to 1 enables the restrictions on chown rather than disables (as 0 does).
Reply With Quote
  #3  
Old 12-16-2007
Registered User
 

Join Date: Dec 2007
Location: Brisbane, Australia
Posts: 7
Quote:
Originally Posted by Smiling Dragon View Post
Try setting it to 0 instead. Setting it to 1 enables the restrictions on chown rather than disables (as 0 does).
Ooops, my bad. Have now set to 0 and rebooted. Must be something else, as the problem still manifests the same.
Reply With Quote
  #4  
Old 12-17-2007
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 489
You need the "file_chown_self" privilege to giveaway a file ownership or group.

Otherwise, the chgrp command will only allow you to switch between groups you belong to.
Reply With Quote
  #5  
Old 12-18-2007
Registered User
 

Join Date: Dec 2007
Location: Brisbane, Australia
Posts: 7
Thanks...that did it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0