LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a command that gives you ownership of a folder and all it's sub-folders (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-command-that-gives-you-ownership-of-a-folder-and-all-its-sub-folders-558389/)

royeo 06-01-2007 01:53 PM

Is there a command that gives you ownership of a folder and all it's sub-folders
 
I have Fedora Core 5 and use KDE.

I am able to change ownership of a folder with "chown ID directory" (no quotes). But I would like to be able to change the ownership of that folder/directory and all sub-folders. Can someone tell me if it's possible and if so, how to do it?

Thanks,

royeo

kav 06-01-2007 01:54 PM

check the man page, it's either -r or -R

sydney-troz 06-01-2007 01:55 PM

chown -R ID directory

jay73 06-01-2007 01:55 PM

You can use a username instead of an ID as well, of course.


All times are GMT -5. The time now is 07:35 AM.