1. Enable FTP

In this article i am going to explain the simple steps required to enable (start) the FTP Server in Solaris 10 and also securing the service.

First look if the service is enabled:
svcs -a | grep ftp

If the service is disabled, start it (As root):
svcadm enable svc:/network/ftp:default
2. Securing FTP

To secure ftp you are going to work with 3 files:
/etc/ftpd/ftpusers
/etc/ftpd/ftphosts
/etc/shells


The file /etc/ftpd/ftpusers:
This file lists the users that DO NOT have access, use it to deny access to certain users.

The file /etc/ftpd/ftphosts:
Here is listed the user and the rule (deny or allow) with a hostname or ip address.

For example:

And if i try to login with the correct username and password:

The file /etc/shells:

This file lists the shells that can be used in a remote session to this host, if the users shell (that appears in /etc/passwd) is not listed here, the user is not going to be able to login. This is another way of disabling the access to a user of group of users.