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)
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)
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