Welcome, Guest
Please Login or Register.
Lost Password?
How to turn off Anonymous FTP? (1 viewing)
Post Reply

TOPIC: How to turn off Anonymous FTP?

#2125
ah...lifes...good (User)
Posts: 260
graphgraph
How to turn off Anonymous FTP? 2006/06/11 10:32  
Hi,

I don't need creation of anonymous FTP user. How do I turn it off on Virtualmin Pro?

Thanks.
  The administrator has disabled public write access.
#2132
Joe (Admin)
Posts: 4213
graph
Re: How to turn off Anonymous FTP? 2006/06/11 16:35  
Howdy A,

Virtualmin does not configure anonymous FTP access at all, and our ProFTPd package is not configured, by default, to allow any anonymous access.

You can check by looking at the /etc/proftpd.conf configuration. There is a commented out section at the end of the default .conf file that starts with:

# A basic anonymous configuration, with an upload directory.
#< Anonymous ~ftp>
...

It's a big section, so I won't include it all...but I don't think there's any other way to end up with anonymous access.
  The administrator has disabled public write access.
#2136
ah...lifes...good (User)
Posts: 260
graphgraph
Re: How to turn off Anonymous FTP? 2006/06/11 23:48  
Thanks mate!

The reason I asked is because I see this at Edit Server Template section...

ProFTPd directives for new servers:

ServerName ${DOM}
< Anonymous ${HOME}/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
< Limit WRITE>
DenyAll
< /Limit>
RequireValidShell off
ExtendedLog ${HOME}/logs/ftp.log
< /Anonymous>



What does the above do? Do I need to erase it or turn it off somewhere?

Thanks!
  The administrator has disabled public write access.
#2140
Joe (Admin)
Posts: 4213
graph
Re: How to turn off Anonymous FTP? 2006/06/12 03:06  
Hey A,

Heh. Looks like we do enable anonymous FTP on a per-domain basis, by default. Must have had someone request that at some point in the past (and I see now that it's been around for quite a while). I'm dead set against FTP as a protocol in general, and the sooner it dies the better off we'll all be, but I'm constantly amazed to find strong desire for more FTP access by default (and when something goes wrong we hear about it faster than just about any other kind of bug).

In short, yep, you can either delete the anonymous section, or comment it out. I think that's a fine idea, though it probably isn't going to hurt anything to leave it in.
  The administrator has disabled public write access.
#2142
ah...lifes...good (User)
Posts: 260
graphgraph
Re: Re: How to turn off Anonymous FTP? 2006/06/12 12:25  
Thanks for clarifying, Joe. Yes, I believe in the KISS philosophy - Keep It Simple Stupid, and remove things that are not necessary, to reduce security risks.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.