setting file permissions on a web server

Martin P. Hellwig mhellwig at xs4all.nl
Sun Apr 30 19:46:24 EDT 2006


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 at 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



More information about the Python-list mailing list