Re: setting file permissions on a web server
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: setting file permissions on a web server

From: Martin P. Hellwig <mhellwig@xs4all.nl>
Date: Mon May 01 2006 - 01:46:24 CEST

John Salerno wrote:
<cut>

Most FTP servers do allow to use chmod in a ftp session, although you're
client must support it. See for example a cli ftp client (and server) on
FreeBSD.

> mhellwig@xs2:~$ ftp ftp.xs4all.nl
> Connected to ftp2.xs4all.nl.
> 220 XS4ALL ftpd DCLXVI
> Name (ftp.xs4all.nl:mhellwig):
> 331 Password required for mhellwig.
> Password:
> 230 User mhellwig logged in.
> Remote system type is UNIX.
> Using binary mode to transfer files.
> ftp> ls MHellwigCV_02_10_01.pdf
> 150 Opening ASCII mode data connection for file list
> ---------- 1 mhellwig user 211102 May 19 2003 MHellwigCV_02_10_01.pdf
> 226 Transfer complete.
> ftp> chmod 400 MHellwigCV_02_10_01.pdf
> 200 SITE CHMOD command successful
> ftp> ls MHellwigCV_02_10_01.pdf
> 150 Opening ASCII mode data connection for file list
> -r-------- 1 mhellwig user 211102 May 19 2003 MHellwigCV_02_10_01.pdf
> 226 Transfer complete.
> ftp>

See?

-- 
mph
Received on Mon May 1 00:48:35 2006