-5

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?

womble
  • 96,255
  • 29
  • 175
  • 230
Mas
  • 1
  • 2

1 Answers1

5

chown xyz file1 file2 file3 for single files and directories

chown -R xyz dir1 for recursive directories

moul
  • 575
  • 1
  • 4
  • 11
  • 3
    I 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