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 it possible to jail a non cpanel user?

Discussion in 'General Discussion' started by mmkassem, Jun 28, 2003.

  1. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Egypt
    I would like to jail the user admin.

    I tried:
    usermod -s /usr/local/cpanel/bin/jailshell admin

    but when I tried to login it did not work.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 mmkassem, Jun 28, 2003
    Last edited: Jun 28, 2003
  2. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    166
    Who is the user admin and how do you use his account? I see his directory in /home but never could use the stupid thing.

    cPanel.net Support Ticket Number:
     
  3. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Egypt
    Re: Re: Is it possible to jail a non cpanel user?

    If you can see admin in the /home then you created this user.

    I use this user to login to SSH then su to root. (I disabled direct root access)

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    166
    Re: Re: Re: Is it possible to jail a non cpanel user?

    I did not create /admin. It just appeared by default, when cpanel was installed on our plain redhat boxes. Never could use it. I questioned this sometime ago and nobody knew anything about it. It just sits in /home doing nothing.

    cPanel.net Support Ticket Number:
     
  5. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Egypt
    pico /etc/group check if there is a username/group called admin.

    (/home/admin) is not created by default.
    Anyway, I decided not to jail it. :)

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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