PDA

View Full Version : Disable FTP



exposed
07-29-2003, 01:14 AM
Whats the best way to disable ftp for the main user.
Currently i just create an Denygroup section in proftpd.conf

<Limit LOGIN>
DenyGroup groupname
</Limit>

DirectAdmin Support
07-30-2003, 09:53 PM
You want to disable ftp for the system user? .. Well you could just remove the entry from the /etc/proftpd.passwd file... (or the ftp.passwd file in the users directory if its an owned ip).. but this hasn't really been considered... if your method works, I would stick with it, as it would take into account all new additions the passwd files.

John

exposed
07-30-2003, 11:18 PM
The best way is to disable ftp accounts, (i sell email only packages so ftp dont have any use):

edit proftpd.conf

<Limit LOGIN>
DenyGroup groupname
</Limit>

So if you add user test2 then his groupname will be also test2..

tristan
12-18-2009, 03:37 AM
We use a similar approach, but we don't like to administer extra groups so we just disable that specific user, let's call him joe in the proftpd.vhosts.conf:


<VirtualHost 1.1.1.1>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/1.1.1.1.bytes WRITE,READ userlog
AuthUserFile /usr/local/directadmin/data/users/joe/ftp.passwd
<Limit LOGIN>
DenyUser joe
</Limit>
</VirtualHost>