The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 08:26 AM
determine owner of a file unibboy Shell Programming and Scripting 4 01-26-2008 02:39 PM
change owner of a file CBarraford UNIX for Dummies Questions & Answers 3 03-03-2007 11:37 PM
How to change the owner of the file? redlotus72 UNIX for Dummies Questions & Answers 1 09-21-2006 11:31 PM
changing owner & grp of a file Sabari Nath S UNIX for Advanced & Expert Users 1 09-27-2005 12:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-16-2007
brizrobbo brizrobbo is offline
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.
  #2 (permalink)  
Old 12-17-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
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).
  #3 (permalink)  
Old 12-17-2007
brizrobbo brizrobbo is offline
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.
  #4 (permalink)  
Old 12-17-2007
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,383
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.
  #5 (permalink)  
Old 12-18-2007
brizrobbo brizrobbo is offline
Registered User
  
 

Join Date: Dec 2007
Location: Brisbane, Australia
Posts: 7
Thanks...that did it.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0