Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

chown: Not owner

panchpan
Regular Advisor

chown: Not owner

Hello.

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!
5 REPLIES
Kapil Jha
Honored Contributor

Re: chown: Not owner

I think I have not understood ur problem properly.Can you elaborate it properly.
>>>>
But csms is not able to modify the ownership of a file created by him to ftpcsms.>>>

you specified two groups ftponly and ftpcsms.

Kapil
I am in this small bowl, I wane see the real world......
Ivan Ferreira
Honored Contributor

Re: chown: Not owner

You should post the owner of the file trying to change the owner.

If the file is uploaded, maybe an "auto change owner" is enabled, and the file is not owned by the csms.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ann Majeske
Honored Contributor

Re: chown: Not owner

A non-root user cannot change the owner of a file. From the chown man page:

Only a user with superuser authority can use the chown command.

I do admit that the error message is somewhat obscure :)

Ann

Re: chown: Not owner

Please take a look at what you posted.
By looking at the file I can see there is no w writable permissions on the file.
However if both users are in the group, the owner of the file can change the permissions and give it writable options to group as in
Root Group World.
r-x r-x r-x



That should let you write to the file and any other one in the group.

:)
Peace all m
Hein van den Heuvel
Honored Contributor

Re: chown: Not owner

fwiw, the same question was posted in the hpux forum two minutes later. Subsequent replies indicated the systm was hpux.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1173655

Hein.