Version 1.1.3 Jail install error

iceuk626

Verified User
Joined
May 6, 2006
Messages
261
Location
United Kingdom
Code:
Downloading		jail-0.1.tar.gz...
--11:26:20--  http://files.directadmin.com/services/custombuild/jail-0.1.tar.gz
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13840 (14K) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/jail-0.1.tar.gz'


 0% [                                                            ] 0           --.-K/s             
100%[===========================================================>] 13,840      --.-K/s   in 0.09s  

11:26:21 (146 KB/s) - `/usr/local/directadmin/custombuild/jail-0.1.tar.gz' saved [13840/13840]

Fileserver is down, using the backup file server..
--11:26:21--  http://84.16.234.222/services/custombuild/jail-0.1.tar.gz
Connecting to 84.16.234.222:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13840 (14K) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/jail-0.1.tar.gz'


 0% [                                                            ] 0           --.-K/s             
20% [===========>                                                ] 2,896       5.01K/s             
41% [========================>                                   ] 5,792       3.48K/s             
62% [====================================>                       ] 8,688       3.80K/s             
73% [==========================================>                 ] 10,136      3.71K/s             
94% [=======================================================>    ] 13,032      4.09K/s  eta 0s     
100%[===========================================================>] 13,840      3.81K/s  eta 0s     
100%[===========================================================>] 13,840      3.81K/s   in 3.5s   

11:26:28 (3.81 KB/s) - `/usr/local/directadmin/custombuild/jail-0.1.tar.gz' saved [13840/13840]

/usr/bin/md5sum: jail-0.1.tar.gz: No such file or directory

*** MD5 Checksum for jail-0.1.tar.gz Failed.  Redownloading...***

Downloading		jail-0.1.tar.gz...
--11:26:28--  http://files.directadmin.com/services/custombuild/jail-0.1.tar.gz
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13840 (14K) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/jail-0.1.tar.gz'


 0% [                                                            ] 0           --.-K/s             
100%[===========================================================>] 13,840      --.-K/s   in 0.06s  

11:26:34 (244 KB/s) - `/usr/local/directadmin/custombuild/jail-0.1.tar.gz' saved [13840/13840]

Fileserver is down, using the backup file server..
--11:26:34--  http://84.16.234.222/services/custombuild/jail-0.1.tar.gz
Connecting to 84.16.234.222:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13840 (14K) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/jail-0.1.tar.gz'


 0% [                                                            ] 0           --.-K/s             
31% [=================>                                          ] 4,344       5.38K/s             
31% [=================>                                          ] 4,344       2.44K/s             
94% [=======================================================>    ] 13,032      5.21K/s             
94% [=======================================================>    ] 13,032      3.75K/s  eta 0s     
94% [=======================================================>    ] 13,032      2.93K/s  eta 0s     
94% [=======================================================>    ] 13,032      2.40K/s  eta 0s     
100%[===========================================================>] 13,840      2.33K/s  eta 0s     
100%[===========================================================>] 13,840      2.33K/s   in 5.8s   

11:26:43 (2.33 KB/s) - `/usr/local/directadmin/custombuild/jail-0.1.tar.gz' saved [13840/13840]

/usr/bin/md5sum: jail-0.1.tar.gz: No such file or directory


*** MD5 Checksum for jail-0.1.tar.gz failed *again*.***
The md5 checksum value may be incorrect, or a wrong file is being downloaded.
Install continuing with this possibly corrupted file. (it may also be fine)


tar: jail-0.1.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Everything else is fine
 
Hello,

Which OS are you doing this on?
Likely it's an OS quirk that only affect that particular OS where the current working directory of the script is somewhere else due to non-absolute paths.
Let me know which OS and OS version and I'll see what's up.
I wasn't able to duplicate the error on our CentOS 4 test box.

John
 
CentOS 5 i386.

Ive tried the beta version of custombuild and that seems to compile OK.

There are also other errors:

Code:
 ./jail/jail_user.sh flip
cp: cannot create regular file `/home/flip/usr/lib/mysql/libmysqlclient.so.15': No such file or directory
cp: cannot stat `/usr/local/directadmin/custombuild/jail/su': No such file or directory
 
I'm not getting the libmysqlclient.so.15 error.. check to see if you have the file:

ls -la /usr/lib/mysql/libmysqlclient.so.15

For the "su" error, I did get that one becaue I hadn't compiled things yet.. I ran:

./build all_jail

then repeated the "./jail_user.sh username" and that error went away.

John
 
i am getting this error too

cp: cannot stat `/usr/local/directadmin/custombuild/jail/su': No such file or directory


Os of the server centos 5.2
 
Last edited:
I copied the libmysqlclient.so.15 file to the clients /usr/lib - manually - left it as root ownership and it works fine.

Cent 5.2 also
 
i have those files but same :s


# locate libmysqlclient.so.15
/usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient.so.15.0.0


and i folowed this steps only

i copied the jail-0.1.tar.gz and extracted to
/usr/local/directadmin/custombuild/

1. in the options.conf i enabled jail=yes
2. ./build apache
3. ./build all_jail

and than thats all
and than
cd /usr/local/directadmin/custombuild/

and

./jail_user.sh knaqu


and getting this

[root@localhost jail]# ./jail_user.sh knaqu
cp: cannot stat `/usr/local/directadmin/custombuild/jail/su': No such file or directory
 
Last edited:
do i have to rebuild or?

and here it is again same error

[root@localhost /]# cp /usr/lib/libmysqlclient.so.15 /home/knaqu/usr/lib
cp: overwrite `/home/knaqu/usr/lib/libmysqlclient.so.15'? y
[root@localhost /]# cd /usr/local/directadmin/custombuild/
[root@localhost custombuild]# ./jail_user.sh knaqu
-bash: ./jail_user.sh: No such file or directory
[root@localhost custombuild]# cd jail
[root@localhost jail]# ./jail_user.sh knaqu
cp: cannot stat `/usr/local/directadmin/custombuild/jail/su': No such file or directory
 
After rebuilding all system all cosumbuild

and everything

it finally got working but now the user can not do nothing can not use any command can i fix this so they are jailed to their own directory but to acces and do everything normally

and how can i unjail user after jailed

bash: ps: command not found
bash-3.2$ wget http://yp.shoutcast.com/downloads/sc1-9-8/sc_serv_1.9.8_Linux.tar.gz
bash: wget: command not found
bash-3.2$ w
bash: w: command not found
bash-3.2$
 
now the user can not do nothing can not use any command can i fix this so they are jailed to their own directory but to acces and do everything normally
That's not the way a jail works.

A jail actually limits everything the user does (except for kernel processes) to what's in his jail. You can't expect the user to run a command that's not available inside his jail.

I believe the jail instructions have a section on how to add the commands your user will need.

I hope someone else has documented or will documented how to remove a jail from a user; I've never jailed a user in DirectAdmin so I'm not sure how.

Jeff
 
I am getting this error in my OS RHEL4:
PHP:
# ./build shell
File already exists:    jail-0.1.tar.gz
MD5 Checksum on jail-0.1.tar.gz passed.
chrootshell.c: In function `main':
chrootshell.c:159: warning: cast to pointer from integer of different size

And also when ./build all_jail:
PHP:
09:39:40 (69.23 KB/s) - `/usr/local/directadmin/custombuild/jail-0.1.tar.gz' saved [13851/13851]

/usr/bin/md5sum: jail-0.1.tar.gz: No such file or directory


*** MD5 Checksum for jail-0.1.tar.gz failed *again*.***
The md5 checksum value may be incorrect, or a wrong file is being downloaded.
Install continuing with this possibly corrupted file. (it may also be fine)


tar: jail-0.1.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
gcc: chrootshell.c: No such file or directory
gcc: no input files

*** The make has failed ***

I tried to delete archive and to start all anew, does not help(((
What to me to do?
 
Back
Top