Operating System - HP-UX
1827245 Members
2107 Online
109716 Solutions
New Discussion

Re: How do I configure only anonymous ftp

 
Peter Kain
Advisor

How do I configure only anonymous ftp

Is it possible to configure just anonymous ftp.
8 REPLIES 8
Michael Steele_2
Honored Contributor

Re: How do I configure only anonymous ftp

From this link and also see attachment 'anonymouse ftp configure' in WORD format.

http://www.landfield.com/wu-ftpd/
Support Fatherhood - Stop Family Law
Darrel Louis
Honored Contributor

Re: How do I configure only anonymous ftp

AwadheshPandey
Honored Contributor

Re: How do I configure only anonymous ftp

Follow the steps below
create a user ftp assume that 20 is users/guest group id
ftp:*:500:20:anonymous ftp:/home/ftp:/usr/bin/false
mkdir ~/ftp
mkdir ~/ftp/etc
mkdir ~/ftp/usr/bin
cp /sbin/ls ~/ftp/usr/bin/ls
cp /etc/passwd ~/ftp/etc/passwd
cp /etc/group ~/ftp/etc/group
chmod 555 ~/ftp/etc
chmod 555 ~/ftp/usr/bin
now try to login as a user ftp.
Cheers,
Awadhesh
It's kind of fun to do the impossible
Peter Kain
Advisor

Re: How do I configure only anonymous ftp

I need to be more clear. I know how to setup anonymous FTP. I want to disable reqular FTP but leave anonymous FTP running.

I've replaced telnet and regular ftp with ssh /scp but I still have need for an anonymous ftp server.

I'm currently running HP-UX 11.11 with ftpd patched up to PHNE_33412

I dont' see any flags to the ftpd daemon for "anonymous only" like BSD ftpd has, so I've been looking at the ftpaccess file and deny options but I'm not sure it can be done.

I've downloaded but haven't installed from the HP software site WU-FTPD 2.6.1 Special Release, not sure that will be any better.

I'm also looking at a drop in replacement such as pure-ftpd from the HP Porting Center.




AwadheshPandey
Honored Contributor

Re: How do I configure only anonymous ftp

edit ur /var/adm/inetd.sec file, and disable ftp for other users.
man inetd.sec

cheers,
Awadhesh
It's kind of fun to do the impossible
Steven E. Protter
Exalted Contributor

Re: How do I configure only anonymous ftp

Shalom,

Your best bet is to use sam to set it up on the server side.

Users will no longer be a factor.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Kain
Advisor

Re: How do I configure only anonymous ftp

Awadhesh, I don't see how inetd.sec can work. I want to allow all users to connect via anonymous ftp but not allow any regular ftp connections. Anonymous ftp is just a part of the ftp protocol. With inetd.sec I can only designate from which hosts to accept connections.

Can you provide an example of an entry that disables regular ftp and only allows anonymous ftp.
Michael Steele_2
Honored Contributor

Re: How do I configure only anonymous ftp

Why don't you use ftpusers. ftpusers denies all ftp access to every entry listed. So paste in your /etc/passwd file, (note: on one line with no white space), but omit the anonymous login. PS: As a standard security block all UUCP logins should be listed in ftpusers.

Hope it works for you.

http://www.informatik.uni-frankfurt.de/doc/man/hpux/ftpusers.4.html
Support Fatherhood - Stop Family Law