The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    232
    Likes Received:
    1
    Trophy Points:
    18
    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:
    1
    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:
    18
    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