View Full Version : Permissions using CHMOD command in FTP?

03-31-2008, 07:55 PM
Permissions using CHMOD (or the ASP version) command in FTP.

I can set permissions when using CHMOD in PHP before I need to upload the files and reset it after uploading them, like this:This all happens on the server with the actual PHP files
CHMOD 0777
Upload file or files
CHMOD 0755

How to do this in ASP?


04-03-2008, 06:17 AM
Is my question set wrong?

04-03-2008, 07:24 AM
just not a lot of ASP users here i think

04-05-2008, 04:49 AM
Good point, thanks for your response.
I have found some ASP ftp scripts but all I want is to set permissions - couldn't care about uploads and downloads.

FTP using ASP, change the permissions using ASP, Upload the files using an ASP upload script, change the permissions back for safety.


05-29-2008, 06:50 AM
ASP and FTP commands to use CHMOD or similar to change folder permissions before uploading a file via a web form?

Is there a script or commands that can do this?
Are there any other settings that is avaiable on a domain that can make sure that the user has access even though the folders are set to "0755"?

This is all from a web form in a controlled area with Username and Password.

I know that this is possible in PHP with two systems:
suPHP (installed by hosts with a rewrite_module or ftp_module not really sure) or
FTP modules (I write a script with this "$conn = ftp_connect("$host");,blah blah...")

Any ideas unless you have something already?


06-06-2008, 06:24 AM
This will do the trick:

06-06-2008, 09:30 AM
nice one mate

glad you got it sorted

we are all poor on here. Cant afford luxuries like license software.

have to use open source

06-06-2008, 09:45 AM
I am a serious Open Source fan.
I am in no way affiliated to any receipts of any sort.

Free is better, why? cause it will always work.

Perfect example:

Microsoft - Give me $$$ for soft, any problems give me more $$$ for fixing it.
Ubuntu - Give me address will post soft direct to your "house" mail box, any problems - post it in the forums.

Microsoft - How many updates can we give you to slow your life down.
Ubuntu - How would you like to have control of your life.

This is no joke, it's real!