View Full Version : Auto-CHMOD script?
I do a lot of script installations and I was hoping there was a way to automatically have FlashFXP CHMOD specified directories and files after it uploaded them.
Is there a way to do this, and if so ... could somebody please help me set it up to do it?
bigstar
04-28-2003, 07:12 AM
If the directory structure is the same you could create a custom command and then execute the command after the files are uploaded.
I'm afraid there is no option to chmod after upload :(
Yes, the directory structure is identical from localhost to the remote server, as I am uploading all of the files in one "go", and then just running the installer (after CHMODing several directories/files manually).
If there is a way to make a custom command CHMOD them without me having to do each one individually, it would be of great use to us at IPB and people that install scripts and don't relish the chore that is associated with CHMODing a ton of files/directories for each script that is installed.
Another suggestion is to configure your ftpd to automatically set permission flags, this can be done on most unix ftpd's. Im not really sure about ftpds on other OS's
Although I can do this on my dedicated server, I don't imagine the majority of the servers that I install scripts on would take kindly to such a request from a non-account holder, and asking people to request that from their host is really a long way around.
It's much simpler to use an upload script that is made to automatically CHMOD files as it uploads instead of doing that, but I'd rather use my FTP client if possible. :)
bigstar
05-03-2003, 03:04 PM
did you write a custom command?
If you need a simple example it would work like this.
say you're in /
&cd /cgi-bin
SITE CHMOD 755 script.cgi
&cd protected
SITE CHMOD 755 script.cgi
the above example would set the chmod for
/cgi-bin/script.cgi
/cgi-bin/protected/script.cgi
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2025, vBulletin Solutions, Inc.