: How can I change mode of permission / execution of a file I just ftp from
: windows 95 to WWW server ?
: I am working with Windows 95, using the Norton Navigator (Norton file
: manager) to FTP to my WWW server, The files automatically getting
: permission that is not executable (R & W for all).
: Any program out there to allowed me remotely to do "chmod " ? (the server
: running on linux)
: (I try to learn writing CGI and in the book they are talking about : make
: it executable )
: H E L P . [ I know some unix and I can't be local at the WWW server,
: and no one there to talk to ]
If you have an account on the linux box, you should be able to telnet to it.
Win95 has a decent telnet client... Once you log on (same passwd/uname as
ftp), go to your web directory... Then type:
chmod [mode1]-[mode2] [filename]
[mode1] is one of the following: a - for all, u - for user, g - for group,
o - for other. You probably want "a" since it's a public document.
This mode tells who can read/write/execute the file.
[mode2] is one of the following: r - read, w - write, x - execute.
For cgi scripts, the "x" is necessary. You also want the "r" bit set on
the public pages... This simply tells what kind of access the people
defined by [mode1] have.
[filename] is just the file name.
You can also see the current permissions by typing:
ls -alF [filename]
You should see something like:
(for ls -alF index.html)
-rw-r--r-- <stuff deleted> index.html
The three chars with 1's are User permissions, the 2's are group, and the
3's are other.