0

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

0

1 Answer 1

0

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.

5
  • If you mean I need to use this command 'sudo echo aadmi >> /etc/ftpuser' then how can the user be reactivated?
    – webDev
    Commented Mar 11, 2015 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
    Commented Mar 11, 2015 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
    Commented Mar 12, 2015 at 14:14
  • The correct file name is /etc/ftpusers. Sorry about that.
    – hymie
    Commented Mar 13, 2015 at 15:31
  • Still no luck... My cpanel has pure-ftpd installed for managing ftp accounts
    – webDev
    Commented Mar 13, 2015 at 18:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .