Solaris 10 x86 ftp JASS URGENT

Posted on 2006-04-04
Last Modified: 2013-12-21
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?
Question by:kristian_gr
    LVL 38

    Expert Comment

    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:
    LVL 9

    Expert Comment

    by:David Piniella
    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....
    LVL 10

    Expert Comment

    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.

    Author Comment

    # 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   *

    LVL 7

    Expert Comment

    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

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Expert Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now