Link to home
Start Free TrialLog in
Avatar of stmpunix
stmpunix

asked on

How do I enable FTP on Solaris 10

I am trying to ftp to a sparc server running Solaris 10 from another of the same. However, the target server refuses the connection.
The ftp service was disabled so I enabled it and checked  the services stack (see below)
# svcs -l ftp
fmri         svc:/network/ftp:default
name         FTP server
enabled      true
state        online
next_state   none
state_time   Fri Feb 29 09:29:13 2008
restarter    svc:/network/inetd:default
I also restarted the network
# svcs -l ftp
fmri         svc:/network/ftp:default
name         FTP server
enabled      true
state        online
next_state   none
state_time   Fri Feb 29 09:29:13 2008
restarter    svc:/network/inetd:default


I also restarted the network


# svcs -l svc:/network/inetd:default
fmri         svc:/network/inetd:default
name         inetd
enabled      true
state        online
next_state   none
state_time   Fri Feb 29 09:29:11 2008
logfile      /var/svc/log/network-inetd:default.log
restarter    svc:/system/svc/restarter:default
contract_id  4312
dependency   require_any/error svc:/network/loopback (online)
dependency   require_all/error svc:/system/filesystem/local (online)
dependency   optional_all/error svc:/milestone/network (online)
dependency   optional_all/error svc:/network/rpc/bind (online)
dependency   optional_all/none svc:/network/inetd-upgrade (disabled)
dependency   require_all/none svc:/milestone/sysconfig (online) svc:/milestone/name-services (online)

I have checked that the user I am running is NOT in the /etc/ftpd/ftpusers file. Other than creating banner.msg file all the other files in /etc/ftpd are as they were from installation.

Any clues! ideas! etc on where I am going wrong here.? Anything appreciated (within reason)
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

If "svcs ftp" reports that the ftp service is in the "disabled" state, then you should be able to run "svcadm enable ftp" to enable it.
what do you mean when you say you "restarted the network"?  

You show in the output that the service is enabled.  On the system you are starting the service on, can you run
"ftp 0" ? Does that connect? If not, run the command "netstat -a | grep ftp | grep -v tftp" Does that produce any
output? You should see one or two ports that say LISTEN.

ASKER CERTIFIED SOLUTION
Avatar of stmpunix
stmpunix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Usually, you do NOT use svcs / svcadm to manage internet services like ftp and telnet.
Instead, you use
  # inetadm -e <service>
or
  # inetadm -d <service>
to enable or disable the desired service, respectively.
agreed
Avatar of modus_operandi
modus_operandi

Closed, 125 points refunded.
modus_operandi
EE Moderator