Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 19th January 2006, 16:04
jf1976 jf1976 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting there at last!

im getting on top of this now and i've started to consider security a bit more after finding that i can see / so im reading up on Chrooted SSH HowTo http://www.howtoforge.com/book/print/929 and this part
Quote:
3 Create The Chroot Environment

Next I create a chroot environment under /home/chroot. This is the directory that all chrooted SSH users will get jailed in, i.e. they will not be able to see any files/directories outside /home/chroot.
says users will get a shell at /home/chroot but i would like them to get the /var/www/DOMAIN that is theres ? how would i do that ? thanks
Reply With Quote
Sponsored Links
  #22  
Old 19th January 2006, 16:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Quote:
Originally Posted by jf1976
how would i do that ? thanks
Change the paths in the steps described in chapter 3 from /home/chroot to /var/www/web[ID] Where [ID] is the ID of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #23  
Old 19th January 2006, 16:23
jf1976 jf1976 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default can i somehow script this function

can i somehow script this function ispconfig as i would like the system to do this to all users created?

thanks
Reply With Quote
  #24  
Old 19th January 2006, 16:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Quote:
Originally Posted by jf1976
can i somehow script this function ispconfig as i would like the system to do this to all users created?
Have a look at the function user_insert(...) in the file /root/ispconfig/scripts/lib/config.lib.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #25  
Old 19th January 2006, 23:29
jf1976 jf1976 is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default think i found it!

well i got the file had a look inside and found the function! had a read and think i've found the first part?

Quote:
if($user["user_shell"] && $web["web_shell"]){
$shell = "/bin/bash"; //Shell u. FTP
} else {
so im guessing i need to put the addition round about here ? with something like a call to this http://mail.incredimail.com/howto/op...ate_chroot_env script with some of the vars in the config.lib.php

Last edited by jf1976; 19th January 2006 at 23:32.
Reply With Quote
  #26  
Old 19th January 2006, 23:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
 
Default

Yes, thats the right position for your code.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 19:07
ISP install problems Debian sarge 3.1 lerra Installation/Configuration 1 5th January 2006 17:37
2.6.12 debian install problems s2angel Installation/Configuration 6 31st December 2005 14:21
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42
Could not make OpenSSL yontengyatso Installation/Configuration 3 3rd November 2005 11:50


All times are GMT +2. The time now is 12:08.


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