Anonymous FTP server under Solaris

Setting up an anonymous FTP server under Solaris, when using the built-in in.ftpd daemon, is a little bit different than setting it up under GNU/Linux using WUftpd.

First, let’s create the ftp user and ftp group. Then, let’s create the home directory for the ftp user:

mkdir -p /export/home/ftp
groupadd -g 99 ftp
useradd -u 99 -g 99 -s /bin/false -d /export/home/ftp
chgrp ftp:ftp /export/home/ftp

If you want anonymous users to upload files under /pub, add the following line to /etc/ftpd/ftpaccess:

upload          class=anonusers /export/home/ftp /pub yes ftp ftp 0600 nodirs

Next, copy the minimal set of dynamic libraries and binaries to make possible browse and list files for anonymous users:

mkdir -p ~ftp/bin
mkdir -p ~ftp/usr/bin
ln -s ../bin ~ftp/usr/bin
cp /usr/lib/{ld,libc,libdl,libgen}.so.1 ~ftp/usr/lib
cp /bin/ls ~ftp/bin

To enable the FTP server, uncomment the following line in /etc/inetd.conf:

ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd -a

and notify the inetd daemon of the change by sending the HUP signal to it:

pkill -1 inetd

3 thoughts on “Anonymous FTP server under Solaris

  1. i really enjoed to read this blog. came here by luck but very intresting news. i am interested in this topic and right now i am searching for a SMS controling software. interestig topic. thank you very much.

  2. Hi I love this post and it is so informational and I am gonna bookmark it. I Have to say the Superb analysis you have done is trully remarkable.No one goes that extra mile these days? Well Done Just one more suggestion you caninstall a Translator Application for your Worldwide Audience ..

  3. Hi, I am using SuSe11.0 and latest Banshee-1.2.1. I was able to play mp3/wav file on my player but after the latest Banshee update, I am not being able to play any music file. Could anyone help me in giving a solution. Pls see the logs bellow

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s