Posted by: isaraffee | August 25, 2009

Exploring ftp in Mandrivia Spring 2009

Exploring ftp in Mandrivia Spring 2009

Ftp server is not installed by default. To install it, go to Programs–>Install and Remove software and search for the ftp server package i.e proftpd.

 

After you have isntalled proftpd package, check the details:

 

[root@localhost ~]# rpm -qa | grep ftpd

proftpd-1.3.2-4mdv2009.1

[root@localhost ~]# rpm -qi proftpd-1.3.2-4mdv2009.1

Name        : proftpd                      Relocations: (not relocatable)

Version     : 1.3.2                             Vendor: Mandriva

Release     : 4mdv2009.1                    Build Date: Tuesday 03,March,2009 06:15:02 PM GMT

Install Date: Sunday 16,August,2009 12:49:58 PM GMT      Build Host: n1.mandriva.com

Group       : System/Servers                Source RPM: proftpd-1.3.2-4mdv2009.1.src.rpm

Size        : 4694932                          License: GPL

Signature   : DSA/SHA1, Thursday 23,April,2009 08:32:48 PM GMT, Key ID e7898ae070771ff3

Packager    : Oden Eriksson <oeriksson@mandriva.com>

URL         : http://proftpd.org/

Summary     : Professional FTP Server

Description :

ProFTPd is an enhanced FTP server with a focus toward simplicity, security, and

ease of configuration.  It features a very Apache-like configuration syntax,

and a highly customizable server infrastructure, including support for multiple

‘virtual’ FTP servers, anonymous FTP, and permission-based directory

visibility.

 

This version supports both standalone and xinetd operation.

 

Note the last line of the output. Proftpd supports standalone and xinetd operation.

 

To rund proftpd as standalone, go to /etc/nit.d directory and type:

time][root@localhost init.d]# ./proftpd start

Starting proftpd                                                [  OK  ]

 

Check that proftpd is running:

[root@localhost init.d]# ps -ef|grep ftpd

nobody   28012     1  0 12:54 ?        00:00:00 proftpd: (accepting connections)

root     28435 14794  0 12:54 pts/2    00:00:00 grep –color ftpd

 

Now try to ftp locally into your own machine, using any user account, except root account:

[root@localhost init.d]# ftp 192.168.1.100

Connected to 192.168.1.100.

220 ProFTPD 1.3.2 Server (ProFTPD Default Installation) [192.168.1.100]

500 AUTH not understood

Name (192.168.1.100:root): ismail

331 Password required for ismail

Password:

230 User ismail logged in

Remote system type is UNIX.

Using binary mode to transfer files.

 

Yes, you should be able to ftp into the user account. Try ftp using the root account and you may find that you will be denied access.

[root@localhost init.d]# ftp 192.168.1.100

Connected to 192.168.1.100.              

220 ProFTPD 1.3.2 Server (ProFTPD Default Installation) [192.168.1.100]

500 AUTH not understood                                                

Name (192.168.1.100:root): root                                       

331 Password required for root                                        

Password:                                                             

530 Login incorrect.                                                  

Login failed. 

 

To allow root to ftp, you  have to edit the /etc/prpftpd.config file and add this line:

 

RootLogin       on

Now ftp to your local machine using root account

[root@localhost init.d]# ftp 192.168.1.100

Connected to 192.168.1.100.

220 ProFTPD 1.3.2 Server (ProFTPD Default Installation) [192.168.1.100]

500 AUTH not understood

Name (192.168.1.100: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> pwd

257 “/root” is the current directory

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: