Posted by: isaraffee | September 14, 2009

Exploring ftp server in Ubuntu 9.04 Jaunty

Exploring ftp server in Ubuntu 9.04 Jaunty

To experiment with ftp server, you will need to download proftpd

# apt-get install proftpd

proftpd should be run as a standalone server.

The proftpd service will start automatically. Check this by typing:

# ps -ef|grep ftpd

proftpd 7999 1 0 02:35 ? 00:00:00 proftpd: (accepting connections)

But in case, it is not started, start it by typing;

# /etc/init.d/./proftpd start

Now ftp into the local host:

root@ismail-laptop:~# ftp localhost

Connected to localhost.

220 ProFTPD 1.3.1 Server (Debian) [::ffff:127.0.0.1]

Name (localhost:root): root

331 Password required for root

Password:

530 Login incorrect.

Login failed.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp>

You shoud see that you are not allowed to ftp using root account.

To allow root to ftp, edit the file, /etc/proftpd/proftpd.conf.

Add the directive:

AllowRoot yes

Restart the proftpd service:

root@ismail-laptop:/etc/init.d# ./proftpd restart

* Stopping ftp server proftpd [ OK ]

  • Starting ftp server proftpd [ OK ]

Ftp to your localhost using root account:

root@ismail-laptop:/etc/init.d# ftp localhost

Connected to localhost.

220 ProFTPD 1.3.1 Server (Debian) [::ffff:127.0.0.1]

Name (localhost:root): root

331 Password required for root

Password:

230 User root logged in

Remote system type is UNIX.

Using binary mode to transfer files.

ftp>

You should be able to ftp using root account.

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Categories

%d bloggers like this: