I want to temporarily disable the FTP Access of the FTP users which are added from Cpanel

I have tried chsh -s /sbin/nologin aadmi which says "chsh: user "aadmi" does not exist."

Tried sudo echo aadmi >> /etc/ftpusers which added username in this file but no effect... Please note this file was not present before executing this command

I have Centos Server with Cpanel 11 installed with Pure-ftp installed


You need to ask root to add the user names to /etc/ftpusers.

Without root access, you almost certainly don't have permission to make this change.

  • If you mean I need to use this command 'sudo echo aadmi >> /etc/ftpuser' then how can the user be reactivated? – webDev Mar 11 '15 at 17:17
  • If adding the username to that file deactivates FTP access, then removing the username from that file would reactivate FTP access. – hymie Mar 11 '15 at 19:37
  • I tried sudo echo aadmi >> /etc/ftpuser it added the username in ftpuser file but no change... the user aadmi still can login – webDev Mar 12 '15 at 14:14
  • The correct file name is /etc/ftpusers. Sorry about that. – hymie Mar 13 '15 at 15:31
  • Still no luck... My cpanel has pure-ftpd installed for managing ftp accounts – webDev Mar 13 '15 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.