Solved

How do I enable FTP on Solaris 10

Posted on 2008-02-29
7
23,554 Views
Last Modified: 2013-12-21
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)
0
Comment
Question by:stmpunix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 21012602
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.
0
 
LVL 22

Expert Comment

by:blu
ID: 21012901
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.

0
 

Accepted Solution

by:
stmpunix earned 0 total points
ID: 21013237
I restarted the network using the svcadm command ..

# svcadm restart svc:/network/inetd:default
# 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 14:01:21 2008
logfile      /var/svc/log/network-inetd:default.log
restarter    svc:/system/svc/restarter:default
contract_id  4732
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 ran the command you gave and yes they are listening.
# netstat -a | grep ftp | grep -v tftp
      *.ftp                *.*                0      0 49152      0 LISTEN
      *.ftp                             *.*                             0      0 49152      0 LISTEN

However, on running your commands It dawned on me to run a traceroute. ITS GOING THROUGH A FIREWALL.

Okay I admit it, it's friday  and I am having a bad day.

Thanks for responding so soon though. I appreciate the help and having never used this kind of forum before I am impressed with the whole thing.

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 16

Expert Comment

by:Hanno P.S.
ID: 21031806
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.
0
 
LVL 16

Expert Comment

by:Hanno P.S.
ID: 21048721
agreed
0
 
LVL 1

Expert Comment

by:modus_operandi
ID: 21070102
Closed, 125 points refunded.
modus_operandi
EE Moderator
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question