- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- chown : Not owner
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:03 PM
тАО10-30-2007 08:03 PM
I have two user IDs. user csms and user ftpcsms. csms is normal user ID and ftpcsms is ftponly and belongs to group ftponly. csms also is a part of group ftpcsms. But csms is not able to modify the ownership of a file created by him to ftpcsms.
-r-xr-xr-x 1 bin bin 24576 Nov 14 2000 /usr/bin/chown
All looks good with chown. The error just says 'not owner' ... Any fix of it?
thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:12 PM
тАО10-30-2007 08:12 PM
Re: chown : Not owner
The "Not owner" message means you cannot change the ownership of a file that is not owned by you. This is a normal message if the file is not yours, that is why Iask for you to list the output of ll here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:13 PM
тАО10-30-2007 08:13 PM
Re: chown : Not owner
The "Not owner" message means you cannot change the ownership of a file that is not owned by you. This is a normal message if the file is not yours, that is why Iask for you to list the output of ll here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:19 PM
тАО10-30-2007 08:19 PM
Re: chown : Not owner
I would also look at the permissions of the directory you are in. If the recipient user does not have permissions to that directory chown will fail with the same error.
ls -ld /directory
Regards
Andrew Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:24 PM
тАО10-30-2007 08:24 PM
Re: chown : Not owner
[2459] cceor10:slr/kkn $ touch iy
[2460] cceor10:slr/kkn $ ll -d iy
-rw-r----- 1 puma MFGPRO 0 Oct 31 08:40 iy
[2461] cceor10:slr/kkn $ chmod 660 iy
[2462] cceor10:slr/kkn $ ll -d iy
-rw-rw---- 1 puma MFGPRO 0 Oct 31 08:40 iy
[2463] cceor10:slr/kkn $ chown ftprs81:ftponly iy
iy: Not owner
[2464] cceor10:slr/kkn $ chown ftprs81 iy
iy: Not owner
[2467] cceor10:slr/kkn $
$id ftprs81
uid=27912(ftprs81) gid=606(ftponly)
$id puma
uid=26793(puma) gid=600(MFGPRO) groups=601(mfgadm),607(socks),606(ftponly)
$who am i
puma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:48 PM
тАО10-30-2007 08:48 PM
Re: chown : Not owner
Maybe we first need to check the basics : What OS version are you running, and what is the output of "swlist -l product | grep chown" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:48 PM
тАО10-30-2007 08:48 PM
Re: chown : Not owner
pwd
/puma/puma/tmp/slr/kkn
drwxrwxrwx 16 puma MFGPRO 8192 Oct 31 08:40 kkn
drwxrwxrwx 12 puma MFGPRO 8192 Oct 30 19:55 slr
drwxrwxrwx 29 puma MFGPRO 14237696 Oct 31 09:48 tmp
drwxrwxr-x 40 puma MFGPRO 49152 Oct 31 09:48 puma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 08:56 PM
тАО10-30-2007 08:56 PM
Re: chown : Not owner
no output came for swlist -l product | grep chown
Version is 11.11
HP-UX cceor10 B.11.11 U 9000/800 3947100180 unlimited-user license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 10:16 PM
тАО10-30-2007 10:16 PM
Re: chown : Not owner
Could you attach the output of getprivgrp?
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2007 10:21 PM
тАО10-30-2007 10:21 PM
Re: chown : Not owner
What is the output of "pwget | grep 26793"
I am looking for a possible duplicate UID.
What if you try the same chown operation on a file in /tmp or /var/tmp ? (Maybe the failure is directory-specific ?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 02:16 PM
тАО10-31-2007 02:16 PM
Re: chown : Not owner
I have never heard of that. Just whether you are owner or not. Or the point J. Bravo is making about getprivgrp. (Or of course a readonly file system.)
You can set your system up so nobody but users having CHOWN can do it:
$ getprivgrp
global privileges: CHOWN
>Wim: what is the output of "swlist -l product | grep chown" ?
This won't work. You need "-l file". And if you know the fileset you can use:
# swlist -l file *.UX2-CORE | fgrep /usr/bin/chown
>J. Bravo: Could you attach the output of getprivgrp?
Exactly.
>Wim: (Maybe the failure is directory-specific?)
That would only be for NFS read only file systems. Which we know is not the case because touch(1) worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 08:21 PM
тАО10-31-2007 08:21 PM
Re: chown : Not owner
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 08:32 PM
тАО10-31-2007 08:32 PM
Re: chown : Not owner
$ getprivgrp
global privileges:
$
Please advice How to fix it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2007 02:49 AM
тАО11-01-2007 02:49 AM
Solutionenable global chown (default)
setprivgrp -g CHOWN
for securety requirements though, you may want to restrict who can run chown.
see man setprivgrp for details.
ftpcsms CHOWN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2007 05:46 AM
тАО11-01-2007 05:46 AM
Re: chown : Not owner
Is there a duplicate UID for puma ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2007 08:25 PM
тАО11-01-2007 08:25 PM
Re: chown : Not owner
You need to issue the setprivgrp (or to configure the /etc/privgroup for the users you want to work the chown) with the CHOWN privilige in order to the chmod works again. For my servers, the configuration is the default:
# getprivgrp
global privileges: CHOWN
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2007 08:40 PM
тАО11-01-2007 08:40 PM
Re: chown : Not owner
Have a great weekend.