Solaris 8 anonymous ftp

Solaris 8 anonymous ftp

Post by Dave Bouwe » Thu, 30 Aug 2001 07:48:20



I'm just setting up a Solaris 8 system...and taking pains to
"armor-plate" it (following several guides, ssh, etc.).  However, I want
to provide a single read-only ftp directory for anonymous access (I
know...not the best option, but I'm not the boss).  Using the
information and script provided in the Dec 99 Solaris man page, I have
it working to the point where an anonymous user can log in, can't write
to /ftp, can get an file if they know the precise filename..so anonymous
ftp is working.  However, 'ls' doesn't work...there is no way they can
see what files are available.  The ls command is definately in the
/ftp/bin/ls location, directory readable, mounted ok, etc...
I've spent a couple days on this...and am quite at wit's end!
Is there any way to get "ls" to work...or is this such a security hole
that it is no longer supported on Solaris 8?  Any other suggestions on
how to provide a "public" ftp location for the world to get
public-domain files?

Dave Bouwer, noaa/sec

--
S. Dave Bouwer
   Senior Project Engineer
   Logicon Federal Data
   www.SpaceWx.com
Mailing Address:
   NOAA Space Environment Center
   325 Broadway
   Boulder CO, 80305-3328
Phone:
   303-497-3899 office
email:

---------------------------------------------------------------------------

 
 
 

Solaris 8 anonymous ftp

Post by Siamac Saatc » Thu, 30 Aug 2001 10:34:14


Try wu-ftpd, its a freeware replacement for ftpd which is more
configurable and can be locked down nicely for anonymous ftp access

http://www.wu-ftpd.org


> I'm just setting up a Solaris 8 system...and taking pains to
> "armor-plate" it (following several guides, ssh, etc.).  However, I want
> to provide a single read-only ftp directory for anonymous access (I
> know...not the best option, but I'm not the boss).  Using the
> information and script provided in the Dec 99 Solaris man page, I have
> it working to the point where an anonymous user can log in, can't write
> to /ftp, can get an file if they know the precise filename..so anonymous
> ftp is working.  However, 'ls' doesn't work...there is no way they can
> see what files are available.  The ls command is definately in the
> /ftp/bin/ls location, directory readable, mounted ok, etc...
> I've spent a couple days on this...and am quite at wit's end!
> Is there any way to get "ls" to work...or is this such a security hole
> that it is no longer supported on Solaris 8?  Any other suggestions on
> how to provide a "public" ftp location for the world to get
> public-domain files?

> Dave Bouwer, noaa/sec

> --
> S. Dave Bouwer
>    Senior Project Engineer
>    Logicon Federal Data
>    www.SpaceWx.com
> Mailing Address:
>    NOAA Space Environment Center
>    325 Broadway
>    Boulder CO, 80305-3328
> Phone:
>    303-497-3899 office
> email:

> ---------------------------------------------------------------------------


 
 
 

Solaris 8 anonymous ftp

Post by Dave Bouwe » Fri, 31 Aug 2001 01:34:06


One more try...
Has anyone setup anonymous ftp under Solaris 8?  Still have the "ls" problem,
and am not quite prepared to learn and install a 3rd-party ftp application.
-Dave


> I'm just setting up a Solaris 8 system...and taking pains to
> "armor-plate" it (following several guides, ssh, etc.).  However, I want
> to provide a single read-only ftp directory for anonymous access (I
> know...not the best option, but I'm not the boss).  Using the
> information and script provided in the Dec 99 Solaris man page, I have
> it working to the point where an anonymous user can log in, can't write
> to /ftp, can get an file if they know the precise filename..so anonymous
> ftp is working.  However, 'ls' doesn't work...there is no way they can
> see what files are available.  The ls command is definately in the
> /ftp/bin/ls location, directory readable, mounted ok, etc...
> I've spent a couple days on this...and am quite at wit's end!
> Is there any way to get "ls" to work...or is this such a security hole
> that it is no longer supported on Solaris 8?  Any other suggestions on
> how to provide a "public" ftp location for the world to get
> public-domain files?

> Dave Bouwer, noaa/sec

> --
> S. Dave Bouwer
>    Senior Project Engineer
>    Logicon Federal Data
>    www.SpaceWx.com
> Mailing Address:
>    NOAA Space Environment Center
>    325 Broadway
>    Boulder CO, 80305-3328
> Phone:
>    303-497-3899 office
> email:

> ---------------------------------------------------------------------------

--
S. Dave Bouwer
   Senior Project Engineer
   Logicon Federal Data
   www.SpaceWx.com
Mailing Address:
   NOAA Space Environment Center
   325 Broadway
   Boulder CO, 80305-3328
Phone:
   303-497-3899 office
email:

---------------------------------------------------------------------------
 
 
 

Solaris 8 anonymous ftp

Post by BB » Fri, 31 Aug 2001 07:26:49


Go to this link:

http://www.landfield.com/wu-ftpd/

and under clink on the  "Setup scripts" link and it will show a few
scripts that will just install anonymous ftp. For a Solaris 7 Sparc
install I used the : "solaris2.ftpsetup" and was easy.

Best of Luck !!!

On Wed, 29 Aug 2001 09:58:44 -0700, "Michael Vilain




>> One more try...
>> Has anyone setup anonymous ftp under Solaris 8?  Still have the "ls" problem,
>> and am not quite prepared to learn and install a 3rd-party ftp application.
>> -Dave


>> > I'm just setting up a Solaris 8 system...and taking pains to
>> > "armor-plate" it (following several guides, ssh, etc.).  However, I want
>> > to provide a single read-only ftp directory for anonymous access (I
>> > know...not the best option, but I'm not the boss).  Using the
>> > information and script provided in the Dec 99 Solaris man page, I have
>> > it working to the point where an anonymous user can log in, can't write
>> > to /ftp, can get an file if they know the precise filename..so anonymous
>> > ftp is working.  However, 'ls' doesn't work...there is no way they can
>> > see what files are available.  The ls command is definately in the
>> > /ftp/bin/ls location, directory readable, mounted ok, etc...
>> > I've spent a couple days on this...and am quite at wit's end!
>> > Is there any way to get "ls" to work...or is this such a security hole
>> > that it is no longer supported on Solaris 8?  Any other suggestions on
>> > how to provide a "public" ftp location for the world to get
>> > public-domain files?

>ls worked when I set up SUN's ftpd.  I didn't use anonymous but a real
>account.  Read the man page on file permissions, specifically what the
>execute bit does for directories.  Also check the permissions on the
>statically linked ls you've put in the ftp/usr/bin.  Also check any logs
>in /var/adm/messages and /var/log/syslog.

>Sun's ftpd isn't very robust for tracking access which I would think is
>key to security.  Unless you don't care, rethink your decision to use
>another ftpd.  Sun's is minimal in security and features.

 
 
 

Solaris 8 anonymous ftp

Post by Thomas Tornblo » Fri, 31 Aug 2001 05:01:34


One thing you might try:

1) Get a root shell window on the system

2) Connect to the system using anonymous ftp

3) Find the ftpd process (ps -ef |grep ftpd)

4) Run "truss -f -o /tmp/truss.out -p <pid of ftpd>" in the shell window

5) Do an "ls" on the ftp connection

6) Kill the truss run

7) Scan /tmp/truss.out for error messages.

My guess is that there's some library missing

> One more try...
> Has anyone setup anonymous ftp under Solaris 8?  Still have the "ls" problem,
> and am not quite prepared to learn and install a 3rd-party ftp application.
> -Dave


> > I'm just setting up a Solaris 8 system...and taking pains to
> > "armor-plate" it (following several guides, ssh, etc.).  However, I want
> > to provide a single read-only ftp directory for anonymous access (I
> > know...not the best option, but I'm not the boss).  Using the
> > information and script provided in the Dec 99 Solaris man page, I have
> > it working to the point where an anonymous user can log in, can't write
> > to /ftp, can get an file if they know the precise filename..so anonymous
> > ftp is working.  However, 'ls' doesn't work...there is no way they can
> > see what files are available.  The ls command is definately in the
> > /ftp/bin/ls location, directory readable, mounted ok, etc...
> > I've spent a couple days on this...and am quite at wit's end!
> > Is there any way to get "ls" to work...or is this such a security hole
> > that it is no longer supported on Solaris 8?  Any other suggestions on
> > how to provide a "public" ftp location for the world to get
> > public-domain files?

> > Dave Bouwer, noaa/sec

> > --
> > S. Dave Bouwer
> >    Senior Project Engineer
> >    Logicon Federal Data
> >    www.SpaceWx.com
> > Mailing Address:
> >    NOAA Space Environment Center
> >    325 Broadway
> >    Boulder CO, 80305-3328
> > Phone:
> >    303-497-3899 office
> > email:

> > ---------------------------------------------------------------------------

> --
> S. Dave Bouwer
>    Senior Project Engineer
>    Logicon Federal Data
>    www.SpaceWx.com
> Mailing Address:
>    NOAA Space Environment Center
>    325 Broadway
>    Boulder CO, 80305-3328
> Phone:
>    303-497-3899 office
> email:

> ---------------------------------------------------------------------------

--

Snail mail:     HB Hax                      Phone:    +46  18 290 290
                Banvallsv?gen 14            Fax:      +46  18 290 291
                S - 754 40 Uppsala, Sweden  Cellular: +46  70 261 1372
 
 
 

Solaris 8 anonymous ftp

Post by Circusj.. » Fri, 31 Aug 2001 12:07:49


I actually had a Call to SUN about there ftpd and a Problem I was
having with anoymous ftp, that did not work on mine but did work on
ftp.sun.com. Guess what they told me ......

They Use WU-FTP, shows what they think of there own ftp deamon.



>Try wu-ftpd, its a freeware replacement for ftpd which is more
>configurable and can be locked down nicely for anonymous ftp access

>http://www.wu-ftpd.org


>> I'm just setting up a Solaris 8 system...and taking pains to
>> "armor-plate" it (following several guides, ssh, etc.).  However, I want
>> to provide a single read-only ftp directory for anonymous access (I
>> know...not the best option, but I'm not the boss).  Using the
>> information and script provided in the Dec 99 Solaris man page, I have
>> it working to the point where an anonymous user can log in, can't write
>> to /ftp, can get an file if they know the precise filename..so anonymous
>> ftp is working.  However, 'ls' doesn't work...there is no way they can
>> see what files are available.  The ls command is definately in the
>> /ftp/bin/ls location, directory readable, mounted ok, etc...
>> I've spent a couple days on this...and am quite at wit's end!
>> Is there any way to get "ls" to work...or is this such a security hole
>> that it is no longer supported on Solaris 8?  Any other suggestions on
>> how to provide a "public" ftp location for the world to get
>> public-domain files?

>> Dave Bouwer, noaa/sec

>> --
>> S. Dave Bouwer
>>    Senior Project Engineer
>>    Logicon Federal Data
>>    www.SpaceWx.com
>> Mailing Address:
>>    NOAA Space Environment Center
>>    325 Broadway
>>    Boulder CO, 80305-3328
>> Phone:
>>    303-497-3899 office
>> email:

>> ---------------------------------------------------------------------------

 
 
 

Solaris 8 anonymous ftp

Post by Casper H.S. Dik - Network Security Engine » Fri, 31 Aug 2001 18:00:59


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>One more try...
>Has anyone setup anonymous ftp under Solaris 8?  Still have the "ls" problem,
>and am not quite prepared to learn and install a 3rd-party ftp application.
>-Dave

have you run the script in the in.ftpd manual page?

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

Solaris 8 anonymous ftp

Post by Dave Bouwe » Sat, 01 Sep 2001 00:44:04


Casper -

Thanks for the reply...
Yes, I have run the script in the in.ftpd...and triple-checked it.  I've been
through the problem with two SA's...with no success.  It is their opinion that the
dynamicly linked 'ls' is broken (and the *.so files are all there).  Recall that
/ftp/bin/ls works fine when normally logged in, and all other aspects of the
anonymous ftp behave as expected.  Just the 'ls' fails.

-Dave



> >One more try...
> >Has anyone setup anonymous ftp under Solaris 8?  Still have the "ls" problem,
> >and am not quite prepared to learn and install a 3rd-party ftp application.
> >-Dave

> have you run the script in the in.ftpd manual page?

> Casper

 
 
 

Solaris 8 anonymous ftp

Post by Thomas Schu » Wed, 05 Sep 2001 23:45:46




>#   Casper -
>#  
>#   Thanks for the reply...
>#   Yes, I have run the script in the in.ftpd...and triple-checked it.  I've been
>#   through the problem with two SA's...with no success.  It is their opinion that the
>#   dynamicly linked 'ls' is broken (and the *.so files are all there).  Recall that
>#   /ftp/bin/ls works fine when normally logged in, and all other aspects of the
>#   anonymous ftp behave as expected.  Just the 'ls' fails.

>Run 'ls' in the ftp chroot area directly
>using the "chroot" command to see your
>errors.

>You have screwed up. ;-)

You have /ftp/bin/ls?  I think that you would need /ftp/usr/bin/ls.
--
Tom Schulz