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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 28th February 2007, 17:58
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

Hi again ;-)

ok I reinstalled the whole thing on a Debian machine and it turned out that the script of your HowTo:
http://www.howtoforge.com/chrooted_ssh_howto_debian

didn't work out again?! This time I used a Debian Sarge System (Basic netinstall and the perfect Deiaban Setup)

Here's my Error Message....:

Code:
server1:/home/chroot# APPS="/bin/bash /bin/ls /bin/mkdir /bin/mv /bin/pwd /bin/rm /usr/bin/id /usr/bin/ssh /bin/ping /usr/bin/dircolors"
server1:/home/chroot# for prog in $APPS;  do
>         cp $prog ./$prog
> 
>         # obtain a list of related libraries
>         ldd $prog > /dev/null
>         if [ "$?" = 0 ] ; then
>                 LIBS=`ldd $prog | awk '{ print $3 }'`
>                 for l in $LIBS; do
>                         mkdir -p ./`dirname $l` > /dev/null 2>&1
>                         cp $l ./$l
>                 done
>         fi
> done
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
cp: cannot stat `(0xbfffe000)': No such file or directory
should I try to use the one which you prepared for my Ubuntu the last time?

And the other question is: you mentioned this lines in your howto:
You should also copy the line of the group in which you will create new users from /etc/group to /home/chroot/etc/group. In this tutorial we will create users in the group users, so we do this:

grep /etc/group -e "^root" -e "^users" > etc/group

Are those necessarry for an ISPconfig Debian System? or is this only for this howto?

Thx for helping !! ;-)

Leander
Reply With Quote
Sponsored Links
  #22  
Old 28th February 2007, 18:08
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
 
Default

Hi again,

OK I did your Howto again and used your modified ubuntu script - and it all worked out for testuser so fine - but what about all the users which are allready created via ISPconfig? Because they're still not chrooted ... And what about the new users which I create over ISPconfig webinterface - will theay be chrooted automatically??

Code:
leo@LeoLinux:~$ ssh -l testuser pc1mail.de
Password: 
testuser@server1:~$ cd /
testuser@server1:/$ ls -lach
total 32K
drwxr-sr-x  8 root 50 4.0K Feb 28 16:48 .
drwxr-sr-x  8 root 50 4.0K Feb 28 16:48 ..
drwxr-sr-x  2 root 50 4.0K Feb 10 12:20 bin
drwxr-sr-x  2 root 50 4.0K Feb 10 11:24 dev
-rw-r--r--  1 root 50    0 Feb 28 16:48 done
-rw-r--r--  1 root 50    0 Feb 28 16:48 echo
drwxr-sr-x  2 root 50 4.0K Feb 28 16:57 etc
-rw-r--r--  1 root 50    0 Feb 28 16:48 fi
drwxr-sr-x  3 root 50 4.0K Feb 28 17:00 home
-rw-r--r--  1 root 50    0 Feb 28 16:48 ldd
drwxr-sr-x  3 root 50 4.0K Feb 28 16:53 lib
drwxr-sr-x  4 root 50 4.0K Feb 10 12:20 usr
testuser@server1:/$ ls -lach /var/
ls: /var/: No such file or directory
testuser@server1:/$ vi   
vi   vim  
testuser@server1:/$ ifconfig
-bash: ifconfig: command not found
testuser@server1:/$ 
testuser@server1:/$ 
testuser@server1:/$ 
testuser@server1:/$ 
testuser@server1:/$ exit
logout
Connection to pc1mail.de closed.
leo@LeoLinux:~$

Thx again !!

Greetings,
Leander S.
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
ISPConfig on a RaQ2 mattm Installation/Configuration 12 23rd January 2008 18:17
Installation Problem irpr Installation/Configuration 21 13th December 2006 11:55
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 17:02
regarding proftpd and users with shell access Ovidiu Server Operation 2 5th December 2005 13:03


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


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