Skip to main content

Shell access enabled even though package does not allow it

Comments

5 comments

  • cPanelMichael
    But today I created a new account, using the default package (which has shell access unchecked) and it still enabled shell access for the new account.

    Hello, Can you verify which version of cPanel is installed on this system? You can check with the following command:
    cat /usr/local/cpanel/version
    Also, does the /var/cpanel/packages/default file exist on this system and include the "HASSHELL=n" line? Thank you.
    0
  • PeteS
    cPanel ver = 11.66.0.15 /var/cpanel/packages/default did not exist. I opened the default package for editing and then saved it. Then the file existed and account creation works as expected. Any idea why it was not there?
    0
  • cPanelMichael
    Hello, Could you confirm which steps you previously took to disable shell access on the default package, and which version of cPanel was installed when you took those steps? Generally, it won't exist unless you create it via the command line or use "WHM >> Edit a Package". Thank you.
    0
  • keithl
    FYI, I found the same thing on 11.68.0.26. Reviewing the package "default" on a new install, the option "Shell Access" is unchecked yet new accounts are still receive full shell access. I created a new package, again with the "Shell Access" option unchecked, and using the same feature list, and now simply moving an existing account to that package removes shell access. Creating a new account with that new package also defaults it to having the shell disabled. So from what I can see the issue is with the default package. It might show in the UI that the shell is disabled but in reality it obviously isn't and still enables it by default.
    0
  • cPanelMichael
    Hi @keithl, Internal case CPANEL-17006 is open to report an issue where the "default" package automatically sets "Shell Access" to enabled despite it showing as disabled when reviewing it from "WHM >> Edit A Package". I'll monitor this case and update this thread with more information on it's status as it becomes available. In the meantime, the temporary workaround is to access "WHM >> Edit Package", select the "default" package, uncheck "Shell Access", and click on "Save Changes". Thank you. Update: CPANEL-17006 was closed without action due to a lack of new support requests on this topic. Please respond to this thread if you continue to experience this issue in supported cPanel & WHM versions.
    0

Please sign in to leave a comment.