View Single Post
  #6  
Old 30th August 2011, 17:02
corpus corpus is offline
Junior Member
 
Join Date: Jan 2011
Posts: 29
Thanks: 8
Thanked 12 Times in 9 Posts
Default solution

Ok. To help some noobs like me with similar probs.
In fresh debian 6 perfect server setup with jailkit 2.13 i had to create 2 jailed users with ispconfig for 2 websites.
With the first user1 created and he was jailed and all ok.
user2 created but not jailed.
I was taking a look tin /etc/passwd and saw this (user1 is the owner of web2)

Code:
web1:x:5004:5005::/var/www/clients/client2/web1:/bin/false
web2:x:5005:5006::/var/www/clients/client1/web2/./home/web2:/bin/false
user2:x:5004:5005::/var/www/clients/client2/web1:/bin/bash
user1:x:5005:5006::/var/www/clients/client1/web2/./home/user1:/usr/sbin/jk_chrootsh
user2 has not jk_chrootsh shell and a wrong homedir
so i modified manually to

Code:
web1:x:5004:5005::/var/www/clients/client2/web1/./home/web1:/bin/false
web2:x:5005:5006::/var/www/clients/client1/web2/./home/web2:/bin/false
user2:x:5004:5005::/var/www/clients/client2/web1/./home/user2:/usr/sbin/jk_chrootsh
user1:x:5005:5006::/var/www/clients/client1/web2/./home/user1:/usr/sbin/jk_chrootsh
and all worked fine
if you want test it
thanks

Last edited by corpus; 30th August 2011 at 17:03. Reason: typo
Reply With Quote