Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a file from another pc with ubuntu, the owner of the file is my user account from this pc. How do I change the owner to my useraccount on another pc so that I can use it?

When i try to change file permissons via nautilus i get the message you're not the owner, that's the reason you can't file permissions.

But i'm the owner just on another Ubuntu with another account. Do i first have to change the rights on the origin Filesystem or can i take the rights somehow over?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

Command line instructions:

Use the chown command.

Example:

sudo chown user file

Where user is the username on the second pc. This needs to be run from the second pc.

GUI instructions:

Run Nautilus with sudo privileges

  • Alt+F2
  • Enter gksu nautilus.
  • Enter your password.

  • Now you can right-click on a file, go to the Permissions tab and select the new owner from the Owner combobox.

    alt text

share|improve this answer
    
thank, exactly what i was looking for –  NES Dec 12 '10 at 23:04
    
You could add instructions on how to change the owner of a file in Nautilus. :) –  htorque Dec 13 '10 at 8:52
    
@htorque How's that? –  Alvin Row Dec 13 '10 at 18:49
    
worth a +1 :P –  htorque Dec 13 '10 at 19:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.