Solved

How do I disable anonymous FTP on an AIX Server

Posted on 2013-01-31
5
2,363 Views
Last Modified: 2013-02-01
A recent security scan revealed that one of our servers is allowing anonymous FTP. I've been asked to disable anonymous FTP. To my knowledge, the absence of an "ftp" or "anonymous" login effectively disables that functionality. Neither of those accounts exist on the server. So, I'm in the dark as to what's raising the red flag.
0
Comment
Question by:babyb00mer
  • 3
  • 2
5 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38842852
Hi,

AIX has a means of configuring anonymous FTP apart from just creating the userids "ftp" and "anonymous".

The clue is in the file /etc/ftpaccess.ctl

The directives "useronly:" and "grouponly:" in that file define anonymous users.

There are more directives like "puseronly:" and "pgrouponly:" which define anonymous users that are password protected.

"allow:" and "deny:" restrict host access, and "readonly:" or "writeonly:" configure directory access.

Please check your system for the presence of that file!
0
 

Author Comment

by:babyb00mer
ID: 38844410
This is the only record in the ftpaccess.ctl file:

pgrouponly: ftpguest

I documented the procedure for setting up anonymous users at our shop, but I didn't implement it on this particular server. I'm not sure why this would present a security problem.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38844435
Members of the group ftpguest can access your server via FTP, but only after having entered the respective user password.

I assume that the pure existence of ftpaccess.ctl is considered a security risk by your security scanner, without taking a closer look into it.

"pgrouponly" in ftpaccess.ctl includes chrooting the concerned FTP users to their home directories, by the way.
0
 

Author Comment

by:babyb00mer
ID: 38844626
After inquiring further, I've determined that it's FTP in general that they're objecting to. For a more secure environment, they would prefer that we use sftp or scp.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 38844702
Well, might be a good idea.

Do you know how to disable FTP?

The easiest way is commenting out the line starting with "ftp" in /etc/inetd.conf and restarting inetd with "refresh -s inetd".

scp and sftp come with OpenSSH.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
removing nim resources 5 37
ovirt 3.6 guest VM support oracle solaris 4 55
Sed question 2 46
unix example issues 18 46
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

707 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

15 Experts available now in Live!

Get 1:1 Help Now