- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: chown question
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
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-02-2007 07:41 PM
тАО10-02-2007 07:41 PM
I am not able to change the ownership of a file that is owned by me to a different id. I go to /tmp create a file and then try to change the ownership by "chown" command and it says operation not permitted/not owner.
I see thi speculiar behavious only on Linux and Solaris but not on HPUX. ould nay one have an idea what is happening here?
Below exampe might give you a good idea
[ssriniva@marple ~]$ pwd
/home/ssriniva
[ssriniva@marple ~]$ id
uid=1807(ssriniva) gid=500(support) groups=500(support)
[ssriniva@marple ~]$ touch aaa
[ssriniva@marple ~]$ ls -ld aaa
-rw-r--r-- 1 ssriniva support 0 Oct 3 2007 aaa
[ssriniva@marple ~]$ chown praman1 aaa
chown: changing ownership of `aaa': Operation not permitted
[ssriniva@marple ~]$
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 08:34 PM
тАО10-02-2007 08:34 PM
Re: chown question
>> behavious only on Linux
>> but not on HPUX
>> have an idea what is happening here
>> [ssriniva@marple ~]$ chown praman1 aaa
>> chown: changing ownership of `aaa': Operation not permitted
Try: [ssriniva@marple ~]$ chown ssriniva aaa
--> No Error
For Linux, may require root to change file owner to other owner.
You can try to install GNU core utilities in HP-UX OS & compare:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/coreutils-6.9/
[HP-UX] $ /usr/local/coreutils/bin/chown praman1 aaa
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 09:13 PM
тАО10-02-2007 09:13 PM
Re: chown question
[56] % cd /tmp
[57] % ls -ld a
-rw-r----- 1 praman1 support 0 Oct 3 13:01 a
[58] % id
uid=1500(praman1) gid=500(support)
[59] % /usr/local/coreutils/bin/chown reproadm a
[60] % ls -ld a
-rw-r----- 1 reproadm support 0 Oct 3 13:01 a
[61] %
and even chown ssriniva aaa also works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 09:29 PM
тАО10-02-2007 09:29 PM
Re: chown question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 09:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 10:05 PM
тАО10-02-2007 10:05 PM
Re: chown question
REgards,
Pattabhi Raman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2007 03:55 PM
тАО10-03-2007 03:55 PM
Re: chown question
The behaviour that you're seeing is by design on Linux/Solaris/AIX - allowing file giveaways is a bad thing.
On HP-UX it is enabled by default. Have a look at getprivgrp/setprivgrp
Cheers,
Philip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2007 05:46 PM
тАО10-03-2007 05:46 PM
Re: chown question
Regards,
Pattabhi RAman