Disable FTP

exposed

Verified User
Joined
Jul 22, 2003
Messages
53
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>
 
Last edited:
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
 
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..
 
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:

Code:
<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>
 
Back
Top