![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Try setting it to 0 instead. Setting it to 1 enables the restrictions on chown rather than disables (as 0 does).
|
|
#3
|
|||
|
|||
|
Ooops, my bad. Have now set to 0 and rebooted. Must be something else, as the problem still manifests the same.
|
|
#4
|
|||
|
|||
|
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
|
|||
|
|||
|
Thanks...that did it.
|
|||
| Google The UNIX and Linux Forums |