PDA

View Full Version : how to set a file's permission..



ultramarc
December 25th, 2002, 10:45 AM
how to set a file's permission to 755? i had this tutorial that uses cgi and it says there to change the file's permission to 755...how do i do that?

andr.in
December 25th, 2002, 11:15 AM
What are you using? ws_ftp? telnet?

IceCube
December 25th, 2002, 02:34 PM
do it with php:

chmod()

set the directory/file as 1 parameter and next parameter is permission..

c0ldfusion
January 4th, 2003, 11:49 PM
if u use telnet and your host runs on a *nix machine, use the following command:

chmod 755 yourfile

be sure you give this command when the current directory (folder) is the one which contains 'yourfile'

ultramarc
January 5th, 2003, 11:11 AM
huh? uhm..can i do that in simple HTML? what do i have to write there? and how?

c0ldfusion
January 5th, 2003, 04:41 PM
you cannot chmod files in html, because html is not rendered on the server. it is rendered on the viewers computer.

i was talking about telnet... if your host has telnet enabled, you can use it to chmod files ... but you must know basic linux commands :/

redViper
January 6th, 2003, 09:53 AM
i think he is asking just how to do basic chmod without getting into the linux hokey-pokey stuff.
to do it in ws_ftp, is hard.. i dont know why, works for everyone else, but if you download smartftp (smartftp.com) it gives you an option, and you can put a number.
but make sure, some hosts you gotta put cgi files in cgi-bin, and some dont. cause if you have to put in cgi-bin, and you dont, it wont work

c0ldfusion
January 6th, 2003, 04:45 PM
well, the best way to chmod a file short and quickly is by downloading any ftp software (i for one use 'cute ftp pro v2.0' from globalscape);

when having any software of this kind, right-click the file you want to chmod and then search in the options for something regarding our subject... at least it workx this way with cute ftp...