Re: [SLUG] chmod probs.

2009-04-10 Thread Alex Samad
On Fri, Apr 10, 2009 at 01:00:10PM +1000, Daniel Pittman wrote: Kyle k...@attitia.com writes: [snip] There is a limit to the number of arguments you can pass to chmod, though, so it is generally speaking better to structure that like this: find -name '*.jpg' | xargs chmod -R 644

Re: [SLUG] chmod probs.

2009-04-10 Thread jam
On Saturday 11 April 2009 00:06:56 slug-requ...@slug.org.au wrote: [snip] What am I missing? find(1), which is used to locate a list of files matching a given set of criteria, allowing you to do something like this:   chmod -R 644 `find -name '*.jpg'` (Note the single-quotes around the

Re: [SLUG] chmod probs.

2009-04-10 Thread Alex Samad
On Sat, Apr 11, 2009 at 07:57:09AM +0800, jam wrote: On Saturday 11 April 2009 00:06:56 slug-requ...@slug.org.au wrote: [snip] What am I missing? find(1), which is used to locate a list of files matching a given set of criteria, allowing you to do something like this:   chmod -R 644

Re: [SLUG] chmod probs.

2009-04-10 Thread jam
On Saturday 11 April 2009 10:00:04 slug-requ...@slug.org.au wrote: On Saturday 11 April 2009 00:06:56 slug-requ...@slug.org.au wrote: [snip] What am I missing? find(1), which is used to locate a list of files matching a given set of criteria, allowing you to do something like

Re: [SLUG] chmod probs.

2009-04-10 Thread jam
On Saturday 11 April 2009 10:00:04 slug-requ...@slug.org.au wrote: On Saturday 11 April 2009 00:06:56 slug-requ...@slug.org.au wrote: [snip] What am I missing? find(1), which is used to locate a list of files matching a given set of criteria, allowing you to do something like

Re: [SLUG] chmod probs.

2009-04-10 Thread Daniel Pittman
jam j...@tigger.ws writes: On Saturday 11 April 2009 10:00:04 slug-requ...@slug.org.au wrote: On Saturday 11 April 2009 00:06:56 slug-requ...@slug.org.au wrote: [snip] What am I missing? find(1), which is used to locate a list of files matching a given set of criteria, allowing

[SLUG] chmod probs.

2009-04-09 Thread Kyle
Hi Sluggers, I'm having a bit of grief with chmod and am hoping one of you gurus will set me straight pls. I have a bunch of directories with a bunch of files (pictures) in each. I want to set directories to 775 and files to 664. I can do a chmod -R 775 *. But then if I do a chmod -R 664

Re: [SLUG] chmod probs.

2009-04-09 Thread Daniel Pittman
Kyle k...@attitia.com writes: I'm having a bit of grief with chmod and am hoping one of you gurus will set me straight pls. You have a problem with argument globbing on Unix, not chmod, which might explain why you are having trouble finding out what is going wrong. I have a bunch of

Re: [SLUG] chmod

2004-09-07 Thread Terry Collins
Andrewd wrote: I have a bunch of files I need to chmod. All files exist under a main directory and also under sub directories (of the main). I know I can chmod 666 *.php but I need to do that in each directory. How do I tell it to go thru each sub directory and change the files chmod -R 666

Re: [SLUG] chmod

2004-09-07 Thread Peter Miller
On Tue, 2004-09-07 at 15:55, Christopher Vance wrote: On Tue, Sep 07, 2004 at 03:39:26PM +1000, David Gillies wrote: or just a plain old chmod -R 666 *.php This won't do it. chmod -R og=u . -- Peter Miller [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message

Re: [SLUG] chmod

2004-09-07 Thread Phil Scarratt
Peter Miller wrote: On Tue, 2004-09-07 at 15:55, Christopher Vance wrote: On Tue, Sep 07, 2004 at 03:39:26PM +1000, David Gillies wrote: or just a plain old chmod -R 666 *.php This won't do it. chmod -R og=u . chmod -R 666 * will work, unless you don't want all files to be changed, in which case

Re: [SLUG] chmod

2004-09-07 Thread Darren Williams
Hi Phil On Tue, 07 Sep 2004, Phil Scarratt wrote: Peter Miller wrote: On Tue, 2004-09-07 at 15:55, Christopher Vance wrote: On Tue, Sep 07, 2004 at 03:39:26PM +1000, David Gillies wrote: or just a plain old chmod -R 666 *.php This won't do it. chmod -R og=u . chmod -R

Re: [SLUG] chmod

2004-09-07 Thread mlh
On Mon, 06 Sep 2004 20:13:23 +1000 Andrewd [EMAIL PROTECTED] wrote: I have a bunch of files I need to chmod. All files exist under a main directory and also under sub directories (of the main). I know I can chmod 666 *.php but I need to do that in each directory. How do I tell it to go thru

Re: [SLUG] chmod

2004-09-07 Thread David Gillies
[EMAIL PROTECTED] wrote: this will probably be wasted unless you fix the dirs as well: find . -type f -exec chmod g=rwx,o=rx {} \; Ummm, if you want to fix the directories, you'd be better off running this: find . -type d -exec chmod g=rwx,o=rx {} \; Your command was setting all

Re: [SLUG] chmod

2004-09-07 Thread mlh
On Wed, Sep 08, 2004 at 11:04:41AM +1000, David Gillies wrote: [EMAIL PROTECTED] wrote: this will probably be wasted unless you fix the dirs as well: find . -type f -exec chmod g=rwx,o=rx {} \; Ummm, if you want to fix the directories, you'd be better off running this:

[SLUG] chmod

2004-09-06 Thread Andrewd
I have a bunch of files I need to chmod. All files exist under a main directory and also under sub directories (of the main). I know I can chmod 666 *.php but I need to do that in each directory. How do I tell it to go thru each sub directory and change the files Thanx Andrew D -- SLUG - Sydney

Re: [SLUG] chmod

2004-09-06 Thread Jeff Waugh
quote who=Andrewd I have a bunch of files I need to chmod. All files exist under a main directory and also under sub directories (of the main). I know I can chmod 666 *.php but I need to do that in each directory. How do I tell it to go thru each sub directory and change the files You can

Re: [SLUG] chmod

2004-09-06 Thread David Gillies
Andrewd wrote: I have a bunch of files I need to chmod. All files exist under a main directory and also under sub directories (of the main). I know I can chmod 666 *.php but I need to do that in each directory. How do I tell it to go thru each sub directory and change the files The find command

Re: [SLUG] chmod

2004-09-06 Thread Christopher Vance
On Tue, Sep 07, 2004 at 03:39:26PM +1000, David Gillies wrote: or just a plain old chmod -R 666 *.php This won't do it. -- Christopher Vance -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html