Click to See Complete Forum and Search --> : Files
MrNewbie
01-27-2001, 05:35 PM
IF theres a file on a web server chmoded to 777, is there anyway to read it? When I try to view the file, it tries to excecute so I can't see it. If its chmoded with world reading there has to be some way to read it right?
scott_R
01-27-2001, 07:24 PM
Do you mean a shell script? If you, you can use the "less" command, or "cat" to see it.
------------------
RTFM=Rewrite The F***ing Manual
For more info, visit http://rute.sourceforge.net/
The snow's falling, and so is MS...:)
MrNewbie
01-27-2001, 07:55 PM
Its on a webserver that i dont have telnet access to.
Craig McPherson
01-27-2001, 09:11 PM
In your web browser, right-click on the link to the file and select "Save As..."
Server-side permissions have nothing to do with this. It's the configuration of your web browser.
[This message has been edited by Craig McPherson (edited 27 January 2001).]
MrNewbie
01-27-2001, 09:18 PM
All that does is save in html what the program does when it excecutes.
klamath
01-27-2001, 09:24 PM
It seems in this case it's more than just permissions. The server thinks the file has both executable priviledges and should be executed for every request - i.e. a CGI app.
I don't think you'll be able to download the actual file.
------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Tornado HTTP Server (http://sourceforge.net/projects/tornado)
Craig McPherson
01-27-2001, 09:49 PM
If you're trying to download a CGI script -- no, you can't do that. Scripts in a server's CGI directories can't be downloaded, for security, only run. I assumed you meant to were just trying to download a file from the web server and your browser was trying to run it, but if you're talking CGI... no you can't. With CGI, the execution is done server-side, not client-side.
[This message has been edited by Craig McPherson (edited 27 January 2001).]