Web Hosting Talk







View Full Version : chomd


Dominic
10-20-2001, 01:53 AM
Folder1
 + Folder2
    + File1
    + File2
 + Folder3
    + Files3
    + Files4

I want to set all the Files with filename contain the word "user" to 666.
And all the Folders to 777.

How can I done that ( In simple ways...:D )?
Thanks!

Fremont Servers
10-20-2001, 02:12 AM
Download an FTP software (www.cuteftp.com)

Chmod directory:
Click on the folder, right click, and select "chmod" option.
put 777 and press "OK"

Chmod file(s):
select all the files that you have to change permission, right click, and select "chmod" option.
put 666 and press "OK"


Any ftp software would work.

Dominic
10-20-2001, 02:41 AM
hmm....;)
I have 500 folders, each with 2-3 files inside,
I want to chmod all the folders to 777 and all the files inside the 500 folders to 666,
If I use cuteftp, chmod the 500 folders to 777 is not a problem,
but if I want to chmod the files inside the 500 folders to 666,
I need to click on every folders, open it, to chmod the files inside.

Any suggestion?

Lawrence
10-20-2001, 02:53 AM
Do you have Telnet or SSH access to your account? If so, you can use:

chmod 777 *
(that will get all directories and files in the current directory)

chmod 777 */*
(that will get all directories and files one level down from the current directory)

chmod 777 */*/*
(etc...)

Then once that's all done, re-do the chmod on the files. Assuming they all have an extension, you could use:

chmod 666 *.*
chmod 666 */*.*
chmod 666 */*/*.*
(etc...)


There's probably a better way, but my Unix command line knowledge isn't all that vast...

Dominic
10-20-2001, 03:15 AM
Thanks!I have Telnet access and chmod all the 1000 files in a second... :laugh: