disabling ftp access for an account without disabling account

periwinkle

Registered
Mar 9, 2005
3
0
151
(disclaimer - While I'm a fairly experienced sys admin, I'm a relative newbie to pureftp and cpanel/whm. Be gentle :) )

I'm setting up a series of accounts through whm, which will need to have cpanel access (no file manager - easy enough to disable), and no ftp access (we are running our own content manager on the server for these users).

We're using pure-ftpd as the ftp server... how does one disable ftp access without deleting the account, or disabling access to cpanel?
 
Last edited:

periwinkle

Registered
Mar 9, 2005
3
0
151
Anyone?

It looks like pure-ftp runs using pure-auth, using a script called pureauth.

I looked at the script - and it seems to point to a file a called /etc/ftpusers as being a place where you can add usernames that won't be allowed to login.

However, even after creating this file, adding the user name to that file, and restarting the ftp server, this is not being obeyed... anyone?
 

Leandro

Well-Known Member
Sep 23, 2003
48
0
156
Argentin
cPanel Access Level
DataCenter Provider
If you are using pure-ftp add the username into the /etc/ftpusers doesnt work...

To disable the access via FTP for an user remove the file /etc/proftpd/<user> (first backup it obviusly) works for me, using pure-ftp

Cheers!