Skip to main content

How to allow zip shell on a shared plan?

Comments

4 comments

  • Jcats
    Are you using Cloudlinux? If not, then just install it with yum and should be all set. yum -y install zip unzip
    if using Cloudlinux you need to do a bit extra but I think they include zip by default.
    0
  • WebHostPro
    Thanks! I am using CloudLinux but I'll try this.
    0
  • Jcats
    I just checked, zip is included in the compression config: CloudLinux Documentation so what you want to do is make sure zip is included by default since it wasn't already installed on your server. # grep -l /usr/bin/zip /etc/cagefs/conf.d/compression.cfg /etc/cagefs/conf.d/compression.cfg
    When you run the grep command you should see that output, if not add: /usr/bin/zip
    to the end of the paths= line and then run cagefsctl --force-update
    although you should do this anyway even if the .cfg contained zip since the actual binary didn't exist prior.
    0
  • cPanelMichael
    Hello @WebHostPro, The information @Jcats provided is correct. However, generally the zip and unzip packages are already installed on the system by default. Thus, your customer should be able to use the zip and unzip commands via SSH without any required actions on your part. Let us know if the customer encounters any errors when attempting to use those commands. Thanks!
    0

Please sign in to leave a comment.