Enable anonymous ftp on Solaris 10

astrounaut_cat

Here the simple step to enable anonymous ftp on Solaris 10:

# ftpconfig -d /export/home/ftp_anonymous
Creating directory /export/home/ftp_anonymous
Updating directory /export/home/ftp_anonymous

# ls /export/home/ftp_anonymous
bin  dev  etc  lib  pub  usr

# ftpconfig /export/home/ftp_anonymous
Creating user ftp
Updating directory /export/home/ftp_anonymous

# svcadm enable svc:/network/ftp:default

# svcs -a | grep ftp
online         18:30:19 svc:/network/ftp:default

Testing from client side:

$ ftp 192.168.56.10
Connected to 192.168.56.10 (192.168.56.10).
220 solaris FTP server ready.
Name (192.168.56.10:rachmat): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (192,168,56,10,251,189)
150 Opening ASCII mode data connection for /bin/ls.
total 16
lrwxrwxrwx   1 root     bin            9 Oct 19 18:29 bin -> ./usr/bin
d--x--x--x   2 root     sys            7 Oct 19 18:29 dev
d--x--x--x   5 root     sys            8 Oct 19 18:29 etc
d--x--x--x   2 root     bin           23 Oct 19 18:29 lib
drwxr-xr-x   2 root     sys            2 Oct 19 18:24 pub
d--x--x--x   6 root     sys            6 Oct 19 18:24 usr
226 Transfer complete.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 780 bytes in 1 transfers.
221-Thank you for using the FTP service on solaris.
221 Goodbye.
Advertisements