Skip to main content

Django and Gettext on Cpanel

Comments

3 comments

  • cPJeremy
    Hello @Denis.v ! Based on previous instances of this, by default the user should be able to access gettext as it is only in /usr/bin/gettext
    . However, I believe I have encountered this before. Do you know if the cPanel user in this question has CageFS Enabled? I went ahead and tested this, and when adding a cPanel user to CageFS that user no longer had access to /usr/bin/
    . What you would need to do is either remove the user from CageFS, or alternatively you can edit the file /etc/cagefs/cagefs.mp
    and add the value: /usr/bin
    . Please note, when you add a new directory to CageFS, you must remount remount the CageFS skeleton directory and all of the enabled users. Which is done using this command: cagefsctl -M
    I hope this helps!
    0
  • Denis.v
    Added. Yes, now: [user] $ gettext --version gettext (GNU gettext-runtime) 0.19.8.1. I don't know how much this will affect security, but there is access. Thank you!
    0
  • cPJeremy
    My pleasure! I believe another option is that you can edit /etc/cagefs/cagefs.mp
    again but add just the binary for /usr/bin/gettext
    . Regardless, I do believe this should work for you. I am glad that we could help and for now you are able to use gettext!
    0

Please sign in to leave a comment.