- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: chown: filename: 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
Forums
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
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
тАО05-17-2004 10:06 AM
тАО05-17-2004 10:06 AM
I have a user count (not root) in a Tru64 5.1a. I wish change the owner to a file (I am the owner) for other user, but the system doesn├В┬┤t let me.
For example, I am the "mtt" user and I have this file:
-rw-r--r-- 1 mtt mds 0 Aug 14 2003 fileXXX
I wish change the owner for "app", with this command:
# chown app fileXXX
chown: fileXXX: Not owner (this message appear)
Can I change the owner of my files?
Thank's in advance.
Regard
Solved! Go to Solution.
- Tags:
- chown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 05:11 PM
тАО05-17-2004 05:11 PM
Re: chown: filename: Not owner
There was a similar discussion some time back on the HPUX forum, please check the link below and let us know how things shape up
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=234475
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 05:42 PM
тАО05-17-2004 05:42 PM
Re: chown: filename: Not owner
check the permission for /sbin/chown it should be like
-rwxr-xr-x 1 bin bin 24800 Oct 17 2002 chown
it shouldn't be having any sticky bit/SUID set.
and also if the file on which you are trying to change owner is on NFS file systems, then you need to change the permission on NFS server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 08:53 PM
тАО05-17-2004 08:53 PM
Re: chown: filename: Not owner
I would tend to say no.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 12:04 AM
тАО05-18-2004 12:04 AM
Re: chown: filename: Not owner
Only root can use the chown command.
On Solaris, it can be modified by adding the following to /etc/system:
set rstchown = 0
Note that this defeats quotas.
I don't know how to modify this with Tru64
Cheers
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:51 AM
тАО05-18-2004 01:51 AM
Re: chown: filename: Not owner
Answer to Ravi, my file is not a NFS file.
The permissions of the "chown" file are:
-rwxr-xr-x 1 bin bin 24832 /usr/bin/chown
it looks ok. Then apparently only root can use the chown command in T64 systems.
Nicolas, Do you have a documment about this?
Thank's
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 02:46 AM
тАО05-18-2004 02:46 AM
SolutionIt seems there is no such equivalent on Tru64 :
http://www.blacksheepnetworks.com/security/resources/tru64/2834.html
Anyway, an idea of workaround :
- encapsulate the chown in a script
- make the script suid as root (chmod 4755)
- put the script earlier in the PATH of all user, or pick another name
REM 1 : You can log the user who use it if you think that you've open a security hole.
REM2 : any modification on the script will remove the suid bit.
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 05:33 AM
тАО05-18-2004 05:33 AM
Re: chown: filename: Not owner
A setuid program that executes chown would be OK. A better idea would be to look into using dop (see the Security Manual) or sudo (do a web search on sudo).
Ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:00 PM
тАО05-18-2004 01:00 PM
Re: chown: filename: Not owner
That's the way it works... it's to do with the group and everyone access.., not only to the file but to its parent directories as well.
If you just want the user app to get the file use the cp command, to copy the file accross and the file owner will be app.
e.g
-rw-r--r-- 1 mtt mds 0 Aug 14 2003 fileXXX
Login : app
password:XXXXXX
/usr/users/app> cp ../mtt/fileXXX .
/usr/users/app> ls -l fileXXX
-rw-r--r-- 1 app apl 0 May 19 2004 fileXXX
As you can see the only downside is the timestamp changes...
If the timestamp is not relevant, then this is the preferable procedure to using suid to root to make the change.
Hope this helps...
Regards,
Orrin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2004 11:20 AM
тАО05-19-2004 11:20 AM
Re: chown: filename: Not owner
Gidday,
What about ACL's ?
The reason why you can't change a file so that someone else owns it is because they may not want it.
If you no longer want the file, then the approach is for them to copy it, and after they safely have it you delete the original.
However if you want to both have full access to the file, but dont want to do it by setting the group or world permission bits then ACL's (Access Control List's) are the way to go.
However ACL's only work if they have been enabled on your machine.
man acl will tell you more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 01:16 AM
тАО05-20-2004 01:16 AM
Re: chown: filename: Not owner
JL