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!

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:
    156
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You need to use a full shell account to be able to su to root, not a jailshell.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Check whether you have any attributes on the file:

    lsattr .bashrc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Angel Fire, NM
    Thanks that was the problem.
     
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