Wednesday, April 14, 2010

pure-ftpd

$ sudo pure-pw mkdb
$ sudo /usr/local/sbin/pure-ftpd -j -lpuredb:/etc/pureftpd.pdb &
$ sudo cat /etc/pureftpd.passwd
joe:$1$2yut2Bd0$F1C9vvLKEArLNg5Xk0YJI.:1002:1002::/home/ftpusers/joe/./::::::::::::
$ ls /home/
oono
$
-----------------------------------------------------
$ ftp localhost
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 18:37. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:oono): joe
331 User joe OK. Password required
Password:
230-User joe has group access to: ftpgroup
230 OK. Current directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
-----------------------------------------------------
$ ls /home/
ftpusers oono
$ ls /home/ftpusers/
joe
$ ls /home/ftpusers/joe
$
-----------------------------------------------------
ftp> ls
200 PORT command successful
150 Connecting to port 54380
226-Options: -l
226 0 matches total
ftp> put README
local: README remote: README
200 PORT command successful
150 Connecting to port 39540
226-File successfully transferred
226 0.023 seconds (measured here), 3.10 Mbytes per second
76222 bytes sent in 0.02 secs (3789.6 kB/s)
ftp>
-----------------------------------------------------
$ ls /home/ftpusers/joe
README
$
-----------------------------------------------------
ftp> pwd
257 "/" is your current location
ftp> cd ..
250 OK. Current directory is /
ftp> ls
200 PORT command successful
150 Connecting to port 50263
-rw-r--r-- 1 1002 ftpgroup 76222 Apr 14 18:39 README
226-Options: -l
226 1 matches total
ftp>

No comments:

Post a Comment