Operating System - Tru64 Unix
1753336 Members
4838 Online
108792 Solutions
New Discussion юеВ

Re: 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 5
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.