LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-11-2005, 10:11 AM   #1
d0127810
LQ Newbie
 
Registered: May 2005
Posts: 27

Rep: Reputation: 15
chroot installation


I have tried long and hard with no success, I'm trying to protect my system against my users using some form of debian chroot.

I went to the debian site:

http://www.debian.org/doc/manuals/se...sh-env.en.html

I've gone to this site attempting G1 and G2 to setup chroot,

G.1

I do this to build and install the package

dpkg -i libpam-chroot_0.9-1_i386.deb

With this result

(Reading database ... 59465 files and directories currently installed.)
Preparing to replace libpam-chroot 0.9-1 (using libpam-chroot_0.9-1_i386.deb) ...
Unpacking replacement libpam-chroot ...
dpkg: dependency problems prevent configuration of libpam-chroot:
libpam-chroot depends on libpam0g (>= 0.76); however:
Version of libpam0g on system is 0.72-35.
dpkg: error processing libpam-chroot (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libpam-chroot


G.2

makejail seems to throw back errors while building the sample throws out this error

File /var/chroot/sshd/lib/libnss_db.so.2 already exists
Adding files matching '/dev/pt*'
Checking path '/dev/ptyp0'
Executing : stat -t -c "%t %T" /dev/ptyp0
WARNING: exit code 32512

ERROR: Cannot get the major and minor codes for the file /dev/ptyp0

I could try the third, but it notes that is the hardest way, and I don't want to further cause any uneccessary clutter on box.

I would appreciate any pointers on how to chroot my users in any straight forward fashion.

Thanks in advance
 
Old 08-06-2005, 12:12 AM   #2
ewt3y
Member
 
Registered: May 2005
Location: hanoi vietnam
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
Due to ssh's dependencies and the fact that it unlike other servers provides a remote shell to users , creating a restricted environment for it is tough.
chroot run a command in a specified root directory.
ssh : a network protocol in the application layer of ther Internet Protocol suite, It permit a com. to login a net. com. . AAh use tcp port 22.
ssh is linked to sshd for authentication.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
Fedora installation on a chroot jail kagesenshi Fedora 0 07-04-2005 01:35 AM
i need help with chroot Paxmaster Linux - General 1 04-04-2005 08:07 AM
chroot wrongman Linux - Security 2 07-15-2004 02:35 AM
what is chroot ? sixth_sense Linux - General 4 05-03-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration