Solaris 10+ FTP

Here are the steps to configure an FTP/TFTP/SFTP server on Solaris versions 10 and above:

1. Find out the path used by FTP.

2. Open /etc/inetd.conf with a text editor and Find the TFTP configuration line.

3. Update the TFTP Service section, mapping it to write to the same path used by FTP, for example (for support user):

tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /export/home/support

4. In /etc/ftpd/ftpaccess, add the following line:

defumask 000

Here /export/home/support is the root directory for FTP/TFTP (permissions must be at least 111 to allow TFTP to overwrite files created by FTP).

5. Edit /etc/ftpd/ftpaccess, adding the following line:

defumask 000

6. Execute inetconv

# inetconv

7. Verify the service is enabled

# svcs | grep tftp

online 10:52:15 svc:/network/tftp/udp6:default

8. After doing the previous steps, you must stop and restart (bounce) the inetd process. Log on as root Find the pid of the inetd process:

$ ps -ef | grep inetd

root 1169 1 0 09:39:02 ? 0:00 /usr/sbin/inetd -s

Here, the pid is 1169.

9. The run the following command to bounce it: kill -1 1169

For more information, see the Solaris man pages on how to configure the ftpaccess file.