[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-users] Adding a user to jail
From: |
Paul Mitchell |
Subject: |
Re: [Jailkit-users] Adding a user to jail |
Date: |
Fri, 28 Aug 2009 10:31:58 -0400 (EDT) |
User-agent: |
Alpine 2.00 (LRH 1167 2008-08-23) |
Hello,
I've successfully loaded jailkit onto one redhat Linux box, and now I'm
tasked with doing the same on a different machine. For some reason, when
I run:
jk_init -v -j /home/jail basicshell editors extendedshell netutils ssh
sftp scp
I get:
Creating symlink /home/jail/usr/lib64/libpopt.so.0 to libpopt.so.0.0.0
Copying /usr/lib64/libpopt.so.0.0.0 to
/home/jail/usr/lib64/libpopt.so.0.0.0
Copying /usr/bin/smbclient to /home/jail/usr/bin/smbclient
Source file(s) /usr/lib/sftp-server do not exist
Source file(s) /usr/lib/misc/sftp-server do not exist
Source file(s) /usr/libexec/sftp-server do not exist
ldconfig: Can't open configuration file /etc/ld.so.conf: No such file or
directory
WHich is not true:
cd /etc
address@hidden etc]# ls -l ld.so.conf
-rw-r--r-- 1 root root 28 Oct 8 2006 ld.so.conf
Consequently, the script never moved the /usr/sbin/jk* fles in (in fact,
/home/jail/usr/sbin was not created - I did this manually and moved the
files in to it). However when I try and ssh into the machine,
I had to manually change the owner:group from /home/jmail./home/pmitchel
to pmitchel:500
According to /var/log/messages file, it looks sucessful:
ug 28 10:29:31 elndz01m jk_chrootsh[13218]: now entering jail /home/jail
for user pmitchel (11782)
However, I get logged off immediately:
address@hidden's password:
Warning: Your password will expire in 72 days on Sun Nov 8 15:15:19 2009
Last login: Fri Aug 28 10:29:20 2009 from eweb.xxx.xxx
Connection to 152.2.XXX.XXX closed.
Any ideas? (Goes without saying that they need this by Tues. and I'm
heading out of town Saturday....)
Paul
==============================================================================
Paul Mitchell
Enterprise Systems
email: address@hidden
NOTE: new location: 440 Franklin, cubby 1213
NOTE: new desk phone: 919 962-2521 (Is here!^)
==============================================================================
- Re: [Jailkit-users] Adding a user to jail,
Paul Mitchell <=