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 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:
    16
    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:
     
    #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:
    16
    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:
    16
    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:
     
  4. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    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:
     
Loading...

Share This Page