| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 94372 | 2008-10-27 01:22:00 | Chmod all files at once? | Blam (54) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 715039 | 2008-10-27 01:22:00 | how can I chmod all the files on a remote server at the same time? They are all in different directprys and my ftp program is core ftp Thanks:thumbs: |
Blam (54) | ||
| 715040 | 2008-10-27 01:49:00 | Should be something along the lines of: chmod -R [permissions] [file-pattern] or chmod --recursive [permissions] [file-pattern] eg. chmod -R +rw *.txt |
dyewitness (9398) | ||
| 715041 | 2008-10-27 02:02:00 | how can I run that scipt? | Blam (54) | ||
| 715042 | 2008-10-27 02:14:00 | I'm a bit confused, chmod is just another command. But I would imagine a generic script would be something like: ftp myserver mypassword ... upload files cd myroot chmod -R [mypermissions] [myfilepattern] ... disconnect |
dyewitness (9398) | ||
| 715043 | 2008-10-27 03:38:00 | can you do a step by step guide on how to do this assuming i have no past experience with ftp or scripts :D ty | esayolay (13857) | ||
| 715044 | 2008-10-27 05:07:00 | Hi esayolay, Welcome to PressF1 :) If you're using an FTP program, try right-clicking on the folder / files you want the permissions changed on. The above chmod -R +wx filename.ext implies you have shell access. See here for linux filesystem permission information: en.wikipedia.org |
Chilling_Silence (9) | ||
| 715045 | 2008-10-27 05:43:00 | OK. I'm running Windows Vista. I need to run a .php file on the server to change some of the uploaded files. This requires full permissions (777). There are over 800 different files in over 50 different folders, and it would take a long time to change them all one by one. That's why i need a script/command/something to change them all at once. I hope this clarifies it a bit better. | esayolay (13857) | ||
| 715046 | 2008-10-27 06:02:00 | OK. I'm running Windows Vista. I need to run a .php file on the server to change some of the uploaded files. This requires full permissions (777). There are over 800 different files in over 50 different folders, and it would take a long time to change them all one by one. That's why i need a script/command/something to change them all at once. I hope this clarifies it a bit better. If you have SSH access to your host server then you could do the following: 1) Download a SSH client program, eg: portableapps.com 2) run the ssh client and connect to your server 3) change directory to where your uploaded files are kept, eg: cd /upload 4) Change the permissions on the files, eg. let's pretend they are .doc files chmod -R 777 *.doc Also to note, changing permissions to 777 (or full read/write/execute) is not really recommended, because it's effectively turned off the file permissions. |
dyewitness (9398) | ||
| 715047 | 2008-10-27 06:11:00 | umm how exactly do you use putty :D e.g. where do you put the username and password? My host server in 110mb.com and i dont know if i have SSH access I have a subdomain of 100mb.com (e.g. xxx.110mb.com) |
esayolay (13857) | ||
| 715048 | 2008-10-27 06:22:00 | where it says host name enter either ip or domain address, I think ( I use ip to ssh to our servers) when you remote to the server, the server will prompt for username and password. if you dont have ssh access you will get timed out basically you'll get a Linux console a bit like a cmd box (but more intelligent :p) prompting for username |
beama (111) | ||
| 1 2 3 | |||||