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.

does jailshell affect server root permissions ?

Discussion in 'General Discussion' started by PDM, Nov 19, 2005.

  1. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    Would enabling jailshell in cPanel System tweaks prevent the server root user write perms to his .bashrc file ?

    When I ssh to my new cpanel server su - and edit .bashrc I get permision denied.

    root can't chmod .bashrc or cp to .bashrc

    ???
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You need to use a full shell account to be able to su to root, not a jailshell.
     
  3. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    I'm trying to to figure out why when I ssh to the server as server admin then su - to become server root I can't chmod, edit or write to my root .bashrc file.

    I'm setting up a new cPanel server and always, with other RHEL servers, edited my .bashrc to email me logins as a rudementary security flag.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Check whether you have any attributes on the file:

    lsattr .bashrc
     
  5. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    Thanks that was the problem.
     
Loading...

Share This Page