• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2206
  • Last Modified:

Solaris 10 x86 ftp JASS URGENT

I've hardened my Solaris 10 using JASS, but I need to start the ftp server from time.
I've tried svcam enable network/ftp and this seames to start the ftp server?
using NETSTAT -a | grep LISTEN it now listen on the .ftp
I've added ftpd: ALL   to /etc/hosts.allow.
And I've disabled ipfilter, while I'm trying to be shure.

ftp localhost gives me:
ftp: connect to address ::1: Network is unreachable
Connected to localhost.
421 Service not available, remote server has closed connection

and ftp from a remote host gives me theese messages in /var/adm/messages:
Apr  4 17:33:08 webserver inetd[238]: [ID 317013 daemon.notice] ftp[713] from 3084
Apr  4 17:33:08 webserver in.ftpd[713]: [ID 808958 daemon.warning] refused connect from (access denied)

Any ide what I'm missing?
1 Solution
make sure that FTP is enable, check /etc/services and /etc/inetd.conf file and make sure that your firewall open for port 21.

Consider use secure ftp (sftp comes with openshh) instead od FTP, you can download it from:
David PiniellaCommented:
are you using the ipf that's installed with solaris? or did you isntall afterwards? did you disable or just allow FTP? if you allowed FTP, re-HUP the fw process....not being able to connect via localhost on the box itself points to the service not being started on the box....
ipf has nothing to do with this.  

I'm suspect of the /etc/ftpd/ftpaccess file.  Run the following:

# inetadm -l ftp | grep exec
         exec="/usr/sbin/in.ftpd -a"

Notice the -a is set.  Man page for in.ftpd says:

     -a              Enables use of the ftpaccess(4) file.

Man page for ftpaccess has the following entry:

     deny addrglob [message_file]

         Deny access to host(s) that match addrglob  and  display
         message_file.  If  the  value of addrglob is !nameserved
         access to sites without a working nameservers is denied.
         message_file  may contain magic cookies. See message for
         more details.

Check your /etc/ftpd/ftpaccess file for a "deny" statement.
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!

kristian_grAuthor Commented:
# inetadm -l ftp | grep exec
gives me:
exec="/usr/sbin/in.ftpd -l -a"
-l should just be logging
ftpaccess has no deny statement
ftphost:   allow    ftp   *

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ - refund points

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer
PAQed with points refunded (500)

Community Support Moderator

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now