Results 1 to 9 of 9
Hi, I'm going to be honest - I'm not very experienced. My question isn't about how to solve a problem.
But I need someone to explain to me, in a ...
- 06-16-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
[SOLVED] Using "chown -r"
Hi, I'm going to be honest - I'm not very experienced. My question isn't about how to solve a problem.
But I need someone to explain to me, in a way a real person can understand, how to use the "-r" operative of the command "chown". Everything just says it's recursive, but my math class never covered that in enough detail.
I'd prefer a patient and non-aggressive response, please. I'd just like answers.
Thanks!
- 06-16-2009 #2
To the best of my knowledge, if you apply the command
to a directory, it will apply to all of its contents, including
other directories and all their contents comprehensively.
- 06-16-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
- 06-16-2009 #4
chown without the recursive flag will only apply to the item you are applying it to, any contents below that will retain their original ownership, with the recursive flag however, every item beyond the item you apply it to will gain the new ownership, including directories and their sub directories and files
- 06-16-2009 #5
Assume the following directory structure
running chown in /parent will affect /dir1/ (but not the files in it) /dir 2/ (but not the files) in it and the files in /parent/Code:/parent/ /dir1/ file 1 file 2 /dir2/ file 1 file 1 file 2
running chown -R in /parent will affect everything under parent including their contents and so on down the treeLast edited by MikeTbob; 06-17-2009 at 08:27 PM. Reason: Corrected command Syntax
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 06-17-2009 #6Just Joined!
- Join Date
- Jun 2009
- Posts
- 4
Oh, I get it now.
Thanks a bunch, guys.
- 06-17-2009 #7
Btw, its 'chown -R' not 'chown -r'.
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
- 06-17-2009 #8If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 06-17-2009 #9I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.



