Sometimes I use root account to create some file for normal user. But it is just for convenient. And I really hope the owner of this file should be the user I create this file for.

How can I change the file owner? (GUI tools are better)

  • 1
    Do you know the chown command? It's a basic to change owner of files...
    – Bardyl
    May 2, 2018 at 10:56
  • 1
    I did not know before. But after searching, it makes sense.
    – pah8J
    May 2, 2018 at 10:59
  • 4
    After all these years you'd think this is a duplicate question but I didn't see an original. +1. May 2, 2018 at 11:33

1 Answer 1


Suppose you have a file named abc and user is user1 and probably group will be user1 then use the command:

sudo chown user1 abc

And if you want to change the user and group of file then:

sudo chown user1:user1 abc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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