Pages

Friday, May 20, 2011

CONFIGURING WU-FTPD DEAMON IN SOLARIS

1. To check port 21 id listening or not.
# netstat -anP tcp | grep 21

 *.21                 *.*                0      0 49152      0 LISTENThe Output like above means that it is lis-tening in all the ip address.

2. FTPD is running and it bind to its default port 21 in Solaris by default unless you make changes to the SMF configuration. SMF controls the service configuration for FTP in Solaris.

# svcs -a | grep ftp

online         Dec_20   svc:/network/ftp:default

This means that it is currently up and online.

3. To get more information on ftp
# svcs -l ftp

The ouput will be:

fmri         svc:/network/ftp:default
name         FTP server
enabled      true
state        online
next_state   none
state_time   Wed Dec 20 00:00:54 2006
restarter    svc:/network/inetd:default


4. To  list the FTP packages installed.

# pkginfo -x | grep -i ftp

SUNWftpr                          FTP Server, (Root)
SUNWftpu                          FTP Server, (Usr)
SUNWncft                          NcFTP - client application implementing FTP
SUNWtftp                          Trivial File Transfer Server
SUNWtftpr                         Trivial File Transfer Server (Root)

5. TO LIST ALL THE INFORMATION REGARDING THE PACKAGE SUNWftpu
 
 # pkginfo -l SUNWftpu

6. TO CHECK THE INCLUDED FILEs IN THE USER PACKAGE of wuftpd.

# pkgchk -l SUNWftpu | grep -i pathname

Pathname: /usr
Pathname: /usr/sbin
Pathname: /usr/sbin/ftpaddhost
Pathname: /usr/sbin/ftpconfig
Pathname: /usr/sbin/ftpcount
Pathname: /usr/sbin/ftprestart
Pathname: /usr/sbin/ftpshut
Pathname: /usr/sbin/ftpwho
Pathname: /usr/sbin/in.ftpd
Pathname: /usr/sbin/privatepw

ftpwho - gives the connected users and process information.
ftpcount - dump classes per count.
ftpconfig - Is used to configure anonymous as well as guest ftp.
in.ftpd - This is the main daemon runs in background and bind the port 21.
/etc/ftpd - Thsi directory houses the main configuration files.

6. SUNWftpr - This includes server side configuration files.

# pkgchk -l SUNWftpr | grep -i pathname

Pathname: /etc
Pathname: /etc/ftpd
Pathname: /etc/ftpd/ftpaccess
Pathname: /etc/ftpd/ftpconversions
Pathname: /etc/ftpd/ftpgroups
Pathname: /etc/ftpd/ftphosts
Pathname: /etc/ftpd/ftpservers
Pathname: /etc/ftpd/ftpusers
Pathname: /var
Pathname: /var/svc
Pathname: /var/svc/manifest
Pathname: /var/svc/manifest/network
Pathname: /var/svc/manifest/network/ftp.xml


7. SUNWftpr - Includes server side configuration files.
/etc/ftpd

ftpaccess - Primary configuration files for wu-ftpd.
ftphosts- This allow admins to define allow | deny access to certain hosts.
ftpservers- This allow admins to define virtual hosts.
ftpusers - users listed may not access via ftp.
ftpconversations- facilitates the support for tar gz and compress support.

8. Wu-Ftpd support both type of ftp connection.
1. PORT - Active FTP
In this type of connection client make TCP:21 server control connection.
When the client executes ls results in server initiating a connection back to client back usually TCP 20 (ftp-data)

2. PASSIVE - Passive FTP
In this type of connection client connect to the TCP \ port 21 at first. After that when execute a command called ls or any other command, server open a high port and instructing the client to source connection to the server. Then the client sources a connection to the high port on the server ( data connection).

NOTE: In passive FTP connection firewall is not necessary in corporate firewall because client is sourcing the connection.











No comments:

Post a Comment