|Subject:||Re: [Jailkit-users] Jail has wrong ownership|
|Date:||Thu, 12 Nov 2020 20:15:28 +0100 (CET)|
Thank you for your reply! Unfortunately (or fortunately, for security’s sake), ISPConfig locks that webxxx folder, and a standard chown will fail, even with sudo/root.
But, good news! I found the article I was looking for, which shows how to (temporarily) remove the protection to fix the ownership/permissions.
As soon as the ownership is fixed, the ssh works once more.
Thank you for your help, and your fantastic software!
Bob Schuon / Senior Developer
Lounge Lizard Worldwide Inc.
- Best of Breed Since 1998
tel 1-888-444-0110 ext 108 | e-fax 1-888-308-8990 | www.loungelizard.com
112 West 34th Street
New York, NY 10120
31 West Main Street
Patchogue, NY 11772
Washington D.C. Metro
1101 Connecticut Avenue NW
Washington, DC 20036
Los Angeles - California
1100 Glendon Avenue
Los Angeles, CA 90024
No experience with ISPConfig, but if you have terminal access it is an easy fix.
you can run 'chown root:root /path/to/jail' and that will fix the problem. jk_check -j /path/to/jail will report if there are more issues.
If there are multiple directories affected, you can even run:
chown -R root:root /path/to/jail
chown jaileduser:group /path/to/jail/path/to/home
On 11-11-2020 23:02, Bob Schuon wrote:
We are running ISPConfig, and one of the jails (webxxx) somehow is owned by the jailed user, rather than root:root. We thought there was a way to fix this, but we can’t seem to find the documentation for it online. Would anyone know how to do this?
Basically, we /think/ the sequence was:
Change a bit in the chroot to make it no longer a chroot (or be able to edit it).
Fix the folder ownership.
Reset the bit to lock the jail again.
Does that sound familiar to anyone?
Jailkit-users mailing list
|[Prev in Thread]||Current Thread||[Next in Thread]|