View Full Version : Changing User on Directories

19th October 2004, 01:22 AM
I am trying to change the user ID on a directory and I want the change to propagate to all the files and subdirectories. Any ideas on how I do this?

19th October 2004, 01:49 AM
chown -R uid:gid (directory)

See man chown for all the gory details. :)

19th October 2004, 02:12 AM
Thanks! I don't know why I didn't look at that?

19th October 2004, 02:26 AM
Thanks! I don't know why I didn't look at that?You're welcome. Feel free to bump my reputation. :)

There are so many ways to do things with Linux, the obvious way isn't always so obvious.

19th October 2004, 02:35 AM
Well, I am fairly new to linux so sometimes I miss the obvious. I came from a windows and Novell background and sometimes I forget about the command prompt in Linux. Thanks Again!

19th October 2004, 03:30 AM
The best resource for common commands: man and apropos.

Don't leave Linux without it... :D