Click to See Complete Forum and Search --> : Questions about chown


twofoolish2b
11-21-2000, 11:04 AM
Hello everyone, I would like to know what is the correct way to change the owner and permissions for a directory from root to a standard user?

nunder
11-21-2000, 11:07 AM
chown [<username>.<groupname>] <filename>
I believe that's it. You may wanna check man chown for more details.

<shameless_plug> http://www.greatcommunities.net
</shameless_plug>

Luthor
11-21-2000, 11:08 AM
I may be incorrect but I have always used:

chown -R user.group /dir/to/mod

Hope that helps http://www.linuxnewbie.org/ubb/smile.gif



------------------
Luthor St. James
(aka [AcK]BillTheCat)

twofoolish2b
11-21-2000, 11:12 AM
Is there a way to change all of the files in a directory from root to a user? Like if I have 50 files in a directory, is there a way I can change all of them at one time?

nunder
11-21-2000, 11:16 AM
Luthor would be correct in that case. The -R parameter makes the command recursive, thus changing the filename / directory specified, as well as all of the files under it (if I'm not badly mistaken). Hope this helps.

<shameless_plug> http://www.greatcommunities.net
</shameless_plug>

twofoolish2b
11-21-2000, 11:20 AM
It worked, thanks guys!

Luthor
11-21-2000, 11:23 AM
WooHoo!!! I got one right! http://www.linuxnewbie.org/ubb/smile.gif

/me scampers around the room...



------------------
Luthor St. James
(aka [AcK]BillTheCat)