LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-06-2006, 04:56 PM   #1
reeaver
LQ Newbie
 
Registered: Apr 2005
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
problem with screen in jail


Hi,

I`ve just made a jail environment for users, using clues from:
http://www.jmcresearch.com/projects/...ies_setup.html
There was no problems until I tried to install the screen in the jail.

The "screen" command gives an error:

Code:
Must be connected to a terminal.
I`ve found the information that, a good idea is to mount the /proc folder into the jail. So, I did it.

Code:
mount -t proc proc /home/users/chroot/proc
After that I have other error:

Code:
Cannot open your terminal '/dev/pts/1' - please check.
The file`s permissions are rather OK.

Code:
reeaver@alpha:~$ ls -la /dev/pts/1 
crw--w----  1 reeaver tty 136, 1 May  6 23:13 /dev/pts/1
(chmod 766, 777 doesn`t help)

Command w gives something like this:
Code:
reeaver@alpha:~$ w 
 23:32:05 up 21 min,  0 users,  load average: 0.00, 0.00, 0.01 
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
I`ve found no information at google how to solve this problem.

Any ideas?

Slackware 10.2, Kernel 2.4.32-grsec
 
Old 05-08-2006, 04:29 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
If you run libc6-2.2.4 then upgrading to libc6-2.2.6 will fix this.
Elif you run anything more recent than libc6-2.2.4 then try running the "screen" command through strace (-o logfile) should provide leads. If you're going to post output from strace please do not post too much info by egrepping for errors, something like "(\-.1|ENO.*)$", and please post *exact* loglines.
 
Old 05-08-2006, 08:25 AM   #3
reeaver
LQ Newbie
 
Registered: Apr 2005
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
I upgraded this library, but also I mounted the /dev directory into the jail:

Code:
mount -t devpts devpts /home/users/chroot/dev/pts
Now screen in jail works fine.

Thank you unSpawn.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Jail problem tipa Linux - Security 1 03-15-2006 10:29 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 02:20 AM
IMAP Jail FinnNetworks Linux - Software 0 03-08-2004 02:08 PM
Jail? Hoops66 *BSD 1 09-11-2003 06:45 AM
Problem with "Jail Chroot Project 1.9" Agento- Linux - General 2 01-19-2003 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:09 PM.

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