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!

chroot jail user as parent?

Discussion in 'General Discussion' started by OooLong, May 10, 2019.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    105
    Likes Received:
    1
    Trophy Points:
    68
    cPanel Access Level:
    Website Owner
    Hi,

    In chroot documentation, it say that. The directory in which to ChrootDirectory must be owned by root. If this is true how does cPanel jail their user in their respective directory with having the user as its owner?

    I get this error when I try to ChrootDirectory a user to a directory with the user as owner of that directory.
    "sftp bad ownership or modes for chroot directory error". It only work if when I change the owner of that dir to root.

    Work:
    drwx--x--x 14 anseekers anseekers 4096 Apr 26 2018 anseekers/

    Not work:
    drwx--x--x 7 bfsaanime bfsaanime 4096 May 9 08:44 bfsaanime

    Anyone any idea why one work and the other doesn't?
     
    #1 OooLong, May 10, 2019
    Last edited: May 10, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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