14

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)

pah8J
  • 301
  • 1
  • 2
  • 9

1 Answers1

15

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
Prvt_Yadav
  • 444
  • 8
  • 17