Gossamer Forum
Home : General : Internet Technologies :

Would this work?

Quote Reply
Would this work?
Just wanted to see if this would work, before I tried it (a live site);

CHMOD -R 666 *.html

Would that go through all the directories, and CHMOD the .html files to 666?

Been trying to work out the syntax for recusivly CMODing the folders too?

TIA for any help/suggestions.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Would this work? In reply to
Nope, that will only chmod anything in the current directory that ends in .html (and if you happen to have a directory that ends in .html, it will chmod that 666 and all files in it).

Try:

find /path/to/look/through -type f -name '*.html'

If that gives you the proper list of files, then run:

find /path/to/look/through -type f -name '*.html' -exec chmod 666 {} \;

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Would this work? In reply to
Thanks. I didn't think it would be as simple as my solution Pirate

I'll give your one a go, and see how that works.

Thanks again.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!