LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chown (https://www.linuxquestions.org/questions/linux-newbie-8/chown-351472/)

loopoo 08-09-2005 07:29 AM

chown
 
Hi!

I am the owner of some files, but I want to change the owner to antoher user.
Is this possible?

I execute this:

chown tom awk.log


and I get the following message:

chown: awk.log: Operation not permitted.


Thanks in advance!
LooPoo

reddazz 08-09-2005 08:06 AM

Re: chown
 
Quote:

Originally posted by loopoo
Hi!

I am the owner of some files, but I want to change the owner to antoher user.
Is this possible?

I execute this:

chown tom awk.log


and I get the following message:

chown: awk.log: Operation not permitted.


Thanks in advance!
LooPoo

Try doing it as root.

loopoo 08-09-2005 08:16 AM

I do not have root rights on this compuer.

It's a server and I connect using putty.

Thanks,
LooPoo

reddazz 08-09-2005 09:29 AM

Well, if you don't have roots rights, then ask the administrator to do it for you (if they are willng to).

loopoo 08-09-2005 09:33 AM

So only the root can change the owner of a file/directory ???
The actual owner can't do that?

Thanks!

reddazz 08-09-2005 09:38 AM

Quote:

Originally posted by loopoo
So only the root can change the owner of a file/directory ???
The actual owner can't do that?

Thanks!

I don't think you can change your own files to be owned by another user and vice-versa, only root can do that.


All times are GMT -5. The time now is 06:43 PM.