william Posted August 7, 2004 Report Share Posted August 7, 2004 Does anybody know if it's possible to change the group and ownership of an entire directory and its contents (subfolders or files) at once? i.e.: I have a dir named "mymp3"full of songs and they belongs to root' s group and ownership. When I try: chown william mymp3 chgrp william mymp3 only the mymp3 dir is affected by the commands, the contents inside the folders not. Thanks. Quote Link to comment Share on other sites More sharing options...
spinynorman Posted August 7, 2004 Report Share Posted August 7, 2004 I think you need the -R parameter to operate on files and directories recursively... :) Quote Link to comment Share on other sites More sharing options...
william Posted August 7, 2004 Author Report Share Posted August 7, 2004 (edited) I think you need the -R parameter to operate on files and directories recursively... :) <{POST_SNAPBACK}> Yeah, before posting I had tried adding -R to the command, but it didn't work. edited to insert the output of the commands: [root@localhost storage]# chgrp william mymp3 -R chgrp: changing group of `mymp3/Miles Davis/miles davis - prelude to a kiss.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis - Pharoah\'s Dance.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis - Moon Dreams.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis - Human Nature.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/miles davis - freddie freeloader.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis/Miles Davis - Prelude To A Kiss.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis/Miles Davis - Pharoah\'s Dance.mp3': Operation not permitted chgrp: changing group of `mymp3/Miles Davis/Miles Davis/Miles Davis - Moon Dreams.mp3': Operation not permitted Edited August 8, 2004 by william Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted August 9, 2004 Report Share Posted August 9, 2004 some quick questions: - do you have enough permissions (the owner) to change the file attributes? - do you have enough permission to change it to target group (are you a member of the target group)? - the filesystem is not by any chance fat32? thats it. sorry i have only been speed reading. too much work.. :( ciao! Quote Link to comment Share on other sites More sharing options...
william Posted August 10, 2004 Author Report Share Posted August 10, 2004 (edited) some quick questions: - do you have enough permissions (the owner) to change the file attributes? - do you have enough permission to change it to target group (are you a member of the target group)? - the filesystem is not by any chance fat32? thats it. sorry i have only been speed reading. too much work.. :( ciao! <{POST_SNAPBACK}> This is a FAT32 partition. Edited August 10, 2004 by william Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.