I'm currently logged in as root
, and I want to switch ownership of files to the xyz
user. How can I do that using chown?
Asked
Active
Viewed 241 times
1 Answers
5
chown xyz file1 file2 file3
for single files and directories
chown -R xyz dir1
for recursive directories

moul
- 575
- 1
- 4
- 11
-
3I would politely add to this: `man chown`. Especially for such simple and basic Unix commands. That said, if the proper usage of `chown` is unknown to you and you have root access, I would seriously consider reading a more thorough beginner's guide to Unix before you accidentally make a mistake you could regret! – Yanick Girouard Mar 19 '12 at 00:33