LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2005, 08:29 AM   #1
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15
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
 
Old 08-09-2005, 09:06 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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.
 
Old 08-09-2005, 09:16 AM   #3
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Original Poster
Rep: Reputation: 15
I do not have root rights on this compuer.

It's a server and I connect using putty.

Thanks,
LooPoo

Last edited by loopoo; 08-09-2005 at 09:24 AM.
 
Old 08-09-2005, 10:29 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Well, if you don't have roots rights, then ask the administrator to do it for you (if they are willng to).
 
Old 08-09-2005, 10:33 AM   #5
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Original Poster
Rep: Reputation: 15
So only the root can change the owner of a file/directory ???
The actual owner can't do that?

Thanks!
 
Old 08-09-2005, 10:38 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 05:23 PM
chown issues tsayles21 Linux - Newbie 1 03-30-2004 09:10 AM
chown -R ujotne Programming 3 02-25-2004 01:02 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM
chown? joetec Linux - Newbie 6 04-07-2002 05:46 AM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration