1821802 Members
3262 Online
109637 Solutions
New Discussion юеВ

Anonymous FTP

 
Sundar_7
Honored Contributor

Anonymous FTP

Hi all,

What is the way to enable and disable

Anonymous FTP logins from the command line.

Though I can do it from SAM but I want to

do it from the command line.

What should I do >

Help me at the earliest

Sundar
Learn What to do ,How to do and more importantly When to do ?
4 REPLIES 4
Thomas Kollig
Trusted Contributor

Re: Anonymous FTP

Hi!

To permit anonymous FTP, there must be an entry in the passwd file for an account named ftp. If you remove it, you will disable anonymous FTP.
See man pages of ftpd.

Bye,

Thomas
Brian Hackley
Honored Contributor

Re: Anonymous FTP

I am logged into an 11.0 system, and verified that the ftpd man page describes the steps that you need to take. I won't paste them in here. I know some sysadmins don't like to use SAM, and you might have your own reasons for not using it. However, I would like to point out thatmany customers and HP Support use it to enable anonymous FTP; it works consistantly and covers all the bases. Hope this helps!
Ask me about telecommuting!
Bruce Regittko_1
Esteemed Contributor

Re: Anonymous FTP

Hi Sundar,

Yes, you can either remove the ftp entry in /etc/passwd (preferred) or rename ftp to something else like FTP. This will disable anonymous ftp.

Brian, until the SAM Team comes up with a non-interactive version of sam, our shell scripts will contain traditional command lines.

--Bruce
www.stratech.com/training
Bruce Regittko_1
Esteemed Contributor

Re: Anonymous FTP

Hi again,

I forgot the simplest solution in my last message: add an entry to /etc/ftpd/ftpusers. This file contains a list of users who are not allow to access the host via ftp. I just tested it with the user "anonymous" and it prevented anonymous ftp logins.

--Bruce
www.stratech.com/training