From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 22:00:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAAC31065670 for ; Tue, 8 Apr 2008 22:00:19 +0000 (UTC) (envelope-from mla@nasreddine.com) Received: from server1.nasreddine.com (server1.nasreddine.com [82.225.70.234]) by mx1.freebsd.org (Postfix) with ESMTP id 862B88FC2F for ; Tue, 8 Apr 2008 22:00:19 +0000 (UTC) (envelope-from mla@nasreddine.com) Received: from localhost (unknown [192.168.2.5]) by server1.nasreddine.com (Postfix) with ESMTP id 31AE312318B5 for ; Wed, 9 Apr 2008 00:00:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at nasreddine.info Received: from server1.nasreddine.com ([192.168.2.5]) by localhost (cadmus-mail.nasreddine.info [192.168.2.5]) (amavisd-new, port 10024) with LMTP id 4LLD9sW3-8zq for ; Wed, 9 Apr 2008 00:00:14 +0200 (CEST) Received: from phoenix.nasreddine.info (phoenix.nasreddine.info [192.168.1.3]) by server1.nasreddine.com (Postfix) with ESMTPA id 41E8F12318A3 for ; Wed, 9 Apr 2008 00:00:14 +0200 (CEST) Date: Wed, 9 Apr 2008 00:00:05 +0200 From: Wael Nasreddine To: FreeBSD Mailing Lists Message-ID: <20080408220005.GA23508@phoenix.nasreddine.info> Mail-Followup-To: FreeBSD Mailing Lists MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline X-Operating-System: Linux 2.6.24-ARCH i686 X-Uptime: 23:49:51 up 27 min, 9 users, load average: 0.11, 0.49, 0.47 X-Editor: VIM - Vi IMproved 7.1 (2007 May 12, compiled Mar 7 2008 02:52:44) X-PGP-Key: http://wael.nasreddine.com/files/Wael_Nasreddine.asc X-Info: http://wael.nasreddine.com User-Agent: Mutt/1.5.17-muttng (2007-11-01) Subject: Screen inside Jails + su X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2008 22:00:19 -0000 --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I have a FreeBSD server which is Jails based, I have created a special jail to run 3 rTorrent process for 3 users, I made all the permissions and added the users, then I launched manually (for testing purpose) these screen sessions for the 3 users using the below method: - jexec onto the jail. - su to the user: su -l wael - run a detached screen: screen -dmS Rtorrent I have a .screenrc for each user in place to run one command, rtorrent Now I have 2 questions: 1) How can I add this procedure to the jail startup?? 2) I can't attach the screen, everytime I try to I get an error: # su -l wael % screen -Dr Rtorrent Cannot open your terminal '/dev/ttyp6' - please check. What's going on? why can't I attach the screen session ?? Thanks :) --=20 Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 /\ I had a friend who was ready for a memory upgrade on his Mac notebook= , and he /\ wanted to know how much "megaram" he needed. --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iEYEARECAAYFAkf76uUACgkQVWU5RcjdGKLnWQCgrlfxQIn3f77M8YhJL8Abrm/k GiEAoJblGGErQaim+b3FI1HsKE8zKBUt =MHtf -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--