Skip to main content

Executing daemons via crontab in jailshell cause problems

Comments

9 comments

  • cPanelMichael
    Hello :) Does assigning normal shell access to the account allow the cron job to function as expected? Thank you.
    0
  • dev_ll
    Hi Michael! Yes it does. For that reason we can't switch account from normal shell to jailed. :( Thank you!
    0
  • cPanelMichael
    Jailshell is a restricted environment by design. It's likely that full shell access is required for the account to run the specific type of application used by that account. Thank you.
    0
  • dev_ll
    Michael, maybe you are right. But, I think a process executed by a specific user context cron job should be accessible for the user. Moreover, the applications which we would like to run in jailed shell are very simple, they are no required to access resources beyond the home directory. And even simplest loop.sh (1st message) executed by cron job can't be accessed by user (check, kill ...). If jailshell will support the described tasks, the overal system security will be higher, as there will not be requirements to enable normal shell. Thank you!
    0
  • dev_ll
    If the problem could not be solved by changing software configuration, what steps should I take to solve it in the nearly future? (support ticket, feature request). The support subscription is active.
    0
  • cPanelMichael
    The following document might be of help if it was a file the account needed to access under a jailed shell environment: How to Add Directories to Jailed Shell (VirtFS) However, this seems different than what you are describing. Feel free to open a support ticket so we can take a closer look and determine if the behavior you are reporting is by design. Post the ticket number here and we can update this thread with the outcome. Thank you.
    0
  • dev_ll
    Thank you, Michael. The support ticket number is 4915817.
    0
  • dev_ll
    Hello, As it turns out the problem is due to Linux kernel limitations. Thanks for assistance!
    0
  • cPanelMichael
    I am happy to see you were able to determine the reason for the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.