Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Is ther a way to add allowances to jailshell?

Discussion in 'General Discussion' started by carock, Oct 29, 2007.

  1. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    245
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    St. Charles, MO
    I have a customer that would like to run the screen command. I installed it on the server, but when they run it, it has the following error.

    cpanel [~]# screen
    Cannot access '/dev/pts/1': No such file or directory

    Is there a way to allow jailshell to access this for this command or do I have to convert this user to normal shell?

    Thanks,
    Chuck
     
  2. TP-GregH

    TP-GregH Registered
    PartnerNOC

    Joined:
    Aug 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Same

    Is there an answer for this yet?
     
  3. jpetersen

    jpetersen Well-Known Member

    Joined:
    Dec 31, 2006
    Messages:
    113
    Likes Received:
    4
    Trophy Points:
    168
    This isn't ideal, but it works:

    1. as root:

    Code:
    chmod 4755 /usr/libexec/pt_chown
    2. as the user that needs to run screen:
    Code:
    export SHELL=/bin/bash
    screen
    You should understand the potential security implications of setting pt_chown (or any file) suid root before doing this.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice