HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Question regarding Jailkit/chroot (http://www.howtoforge.com/forums/showthread.php?t=55459)

darkangel 19th December 2011 21:07

Question regarding Jailkit/chroot
 
Hi,

At some point I enabled Jailkit and/or chroot which resulted in a number of folders being created for the site, for example "bin", "lib", "usr", etc.

Question: Is it safe to just delete these folders if I'm not using Jailkit/chroot?

Thanks.

till 19th December 2011 21:11

you can delete the folders if you dont use any shell users on that website anymore.

darkangel 20th December 2011 09:25

Quote:

Originally Posted by till (Post 269924)
you can delete the folders if you dont use any shell users on that website anymore.

There is a shell user, but it isn't chrooted. (?)

till 20th December 2011 09:30

You should check in /etc/passwd if really none of the shell users of thst site is chrooted. If no chrooted user isleft, then you can remove the folders.

darkangel 20th December 2011 09:40

Quote:

Originally Posted by till (Post 269957)
You should check in /etc/passwd if really none of the shell users of thst site is chrooted. If no chrooted user isleft, then you can remove the folders.

Hmm ...

web3:x:5005:5006::/var/www/clients/client1/web3/./home/web3:/usr/sbin/jk_chrootsh

Is it possible to remove that using ISPConfig, or should I do it by manually editing /etc/passwd?

darkangel 28th December 2011 09:42

Is it possible?

till 28th December 2011 09:46

Please change:

web3:x:5005:5006::/var/www/clients/client1/web3/./home/web3:/usr/sbin/jk_chrootsh

to:

web3:x:5005:5006::/var/www/clients/client1/web3:/bin/bash

manually in /etc/passwd file.

darkangel 28th December 2011 09:54

Thanks. My other users have "/bin/false", which I think means they can't login via SSH ... what controls this inside ISPConfig?

till 28th December 2011 10:02

Quote:

what controls this inside ISPConfig?
That depends if you have a SSH user created for the site or not.

darkangel 28th December 2011 10:14

I meant for "web3" specifically. If I create a shell user "mysite-test" that user will have shell access, but "web3" itself will not.


All times are GMT +2. The time now is 19:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.