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 isuser1
and probably group will beuser1
then use the command:And if you want to change the
user
andgroup
of file then: