Skip to main content

FTP lockdown

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! There aren't any native tools in cPanel that would provide this functionality. You could change the permissions of the FTP user's directory to 400 so they could only have read access to the entire directory, but for more advanced control I'd recommend submitting a feature request to get this added directly to the product.
    0
  • ankeshanand
    Hey there! There aren't any native tools in cPanel that would provide this functionality. You could change the permissions of the FTP user's directory to 400 so they could only have read access to the entire directory, but for more advanced control I'd recommend submitting a feature request to get this added directly to the product.

    There is a Technical option for Doing so. Follow the Steps Below: mkdir /etc/vsftpd/vsftpd_user_conf (This will be our Customer config directory for vsftpd) nano /etc/vsftpd/vsftpd_user_conf/testuser (Name the User you want) Enter the Things below: #Disable access to the below command# cmds_denied=DELE,RMD grep user_config_dir /etc/vsftpd/vsftpd.conf Enter this: user_config_dir=/etc/vsftpd/vsftpd_user_conf service vsftpd reload service vsftpd restart I don't know if it works in cPanel correctly but It works for my Centos7 correctly because I don't know how cPanel adds user accounts and Where. More preferable way is to add a virtual user as given below: useradd -s /bin/false testuser Technically, The cPanel accounts should also support custom config but I highly suggest you to take a backup before doing this as its not made for cPanel Services and works with vsftpd Normal Installations.
    0
  • DHSCOMTR
    Thanks
    0
  • cPRex Jurassic Moderator
    While there might be workarounds that could get this working, there isn't an officially-supported way to perform that work inside cPanel.
    0

Please sign in to leave a comment.