From hddang_1@yahoo.com Mon Jun 1 02:16:02 2015 Received: from nm44-vm7.bullet.mail.bf1.yahoo.com (nm44-vm7.bullet.mail.bf1.yahoo.com [216.109.115.31]) by underdog.stansell.org (8.14.9/8.14.9) with ESMTP id t512G0wW000201 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 1 Jun 2015 02:16:02 GMT Received: from [98.139.170.180] by nm44.bullet.mail.bf1.yahoo.com with NNFMP; 01 Jun 2015 02:15:59 -0000 Received: from [98.139.212.239] by tm23.bullet.mail.bf1.yahoo.com with NNFMP; 01 Jun 2015 02:15:59 -0000 Received: from [127.0.0.1] by omp1048.mail.bf1.yahoo.com with NNFMP; 01 Jun 2015 02:15:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 394737.1027.bm@omp1048.mail.bf1.yahoo.com Received: (qmail 71150 invoked by uid 60001); 1 Jun 2015 02:15:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1433124959; bh=lHcUTYucSbA2HhYwnCpBma8mB3Yy8TgjuNlI+hDBWE0=; h=Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=g+/z79TK0SEcg07oWZbwHSEwEWqaz40qJxA31ekEY/+DjkoqXsZAf/DhUt9dpBfaTJg7UkwmsRbodYtdUcQ3i6HNNJlF3V9wBOtGXmpdl9KjGM5dn/tPtehgq6Rp0RyNsK4odVx0PMF8EegYx4digtX/sN6JTflJm3udtWmAWu4= X-YMail-OSG: Pf0uKqkVM1kSRo_xHdN_4rYU4VYR32SzsxfW_5K4UYu.JEK tedgKLDg_zBwUERItfqd24FGezJtr4hwafmPx3LETSFfqUaJrmiPyoBKf..7 B_K5IRl1whS3ZE2TCytLG11htx5HVmTQL3LNI0zowovu05JVII1MPkNorVaC Uz1ZgM4jHpMBI_oYoOHdf8mcoEMWLpnETB9y08WlhTWJOE58W2mQ0qxy6jGr NEdXu2BGQ5lPDMyBXNhrTfRmxK9j7.FxyXWz0mH68n7HJ0bd_P5gTWYxmVjc 16jlvU_ruJ5gsQV4EG62xwcONsvwl3ADzE9CDXQxNoQ.CVnuoaLvhl_wGS3V riP_NQe6arvtCqY968EG6naCnL7.xnfZWwcXiyrPLVtBR.ISRbX2hNuBiSb4 I.x5Zb3Q_CVShZTMvlmyY9404lDepmoKmGaQ_FCz6mwaoDMVOK.iFpIXkVKX 1svf_l6LyAL3jIQ1dg0RviRH3wOau3QFAgeQSLObxu_Xg3FIyUfe35HaMo6U tuWSm5lORfURc2_ECyauhCItieT.Z9WJq_NeXBTjzoMoyQnIvm4U_cjxU1AD URoMKTAw- Received: from [198.135.125.25] by web162001.mail.bf1.yahoo.com via HTTP; Sun, 31 May 2015 19:15:59 PDT X-Rocket-MIMEInfo: 002.001, SGksIA0KDQpJIGFtIG5ldyB0byB0aGUgQ29uc2VydmVyIGFwcGxpY2F0aW9uIGFuZCB3b3VsZCBsaWtlIHNvbWUgaGVscCBvbiB0aGUgaXNzdWUgdGhhdCBJIGFtIGhhdmluZy4gICBJIGRvd25sb2FkZWQgdGhlIGNvbnNlcnZlciB0YXogZmlsZSBhbmQgZm9sbG93ZWQgdGhlIGluc3RhbGxhdGlvbiBpbnN0cnVjdGlvbiBvbiBhIHJoZWw3LjAgc3lzdGVtLCBzeXN0ZW0xLiAgIFRoZSDigJhtYWtlIGluc3RhbGzigJkgd2VudCBmaW5lIGFuZCBJIHdhcyBhYmxlIHRvIHN0YXJ0IHRoZSBjb25zZXJ2ZXIgcHJvZ3IBMAEBAQE- X-Mailer: YahooMailClassic/529 YahooMailWebService/0.8.203.740 Message-ID: <1433124959.10199.YahooMailBasic@web162001.mail.bf1.yahoo.com> Date: Sun, 31 May 2015 19:15:59 -0700 From: huy dang Subject: How to make conserver prompt for login name when console to a system To: users@conserver.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Spam-Score: -1.249 () BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, T_DKIM_INVALID, T_RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.72 on 198.151.248.21 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by underdog.stansell.org id t512G0wW000201 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 02:16:02 -0000 Hi, I am new to the Conserver application and would like some help on the issue that I am having. I downloaded the conserver taz file and followed the installation instruction on a rhel7.0 system, system1. The ‘make install’ went fine and I was able to start the conserver program on this server. I then use a different session on system1 and run ‘console system2’ to try to connect to system2. System2 is define in the conserver.cf file. I was able to console to system2 but it was using the account “conserver” as a login username on system2. Because this ‘conserver’ account doesn’t exist there, it kept failing to login. I then added the ‘conserver’ account to system2 with a password. After that I was able to console to system2 and logged in successfully using the ‘conserver’ account. Although I was able to log in I couldn’t su to root to do the root activities as I normally do. I prefer not to add the 'conserver' account to any system that I wish to console in. So my question is how to make conserver use the root account to log in when console into a system? Or how do I force it to prompt which login account to use? I tried using the --with-pidfile=/var/run/root.pid (example ./configure --with-pidfile=/varrun/root.pid) and also added a ‘config’ in conserver.cf to “autocomplete no” but still can make it to prompt for login name. # console -l root system2 [Enter `^Ec?' for help] Permission denied, please try again. conserver:7000@10.127.238.148's password: Any information or help would be greatly appreciated. Thanks, Huy From bryan@stansell.org Tue Jun 2 17:44:10 2015 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.14.9/8.14.9) with ESMTP id t52HiAlx020820; Tue, 2 Jun 2015 17:44:10 GMT Received: (from bryan@localhost) by underdog.stansell.org (8.14.9/8.14.9/Submit) id t52HiAmf020819; Tue, 2 Jun 2015 17:44:10 GMT Date: Tue, 2 Jun 2015 17:44:10 +0000 From: Bryan Stansell To: users@conserver.com, announce@conserver.com Subject: conserver-8.2.1 is available Message-ID: <20150602174405.GA20586@underdog.stansell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Scanned-By: MIMEDefang 2.72 on 198.151.248.21 X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2015 17:44:10 -0000 For those following along, I missed my "release by the end of week" timeline - things took more time than I expected and I had less than expected to give. Regardless, it's ready now! Thanks to all the contributors (both recent and past)! The ideas, code, bug reports, and general stories shared with the community are much appreciated. version 8.2.1 (Jun 2, 2015): - added TCP keepalives between client and server - TCP-based consoles already had the code - this was mostly an oversight - patch for SEGV and task execution - patch by Artem Savkov - expanded break sequences from [1-9] to [1-9a-z] - based on patch by Artem Savkov Bryan Stansell From asavkov@redhat.com Thu Jun 4 13:16:24 2015 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by underdog.stansell.org (8.14.9/8.14.9) with ESMTP id t54DGMB4001462 (version=TLSv1/SSLv3 cipher=ADH-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 4 Jun 2015 13:16:24 GMT Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 487112DD2EE for ; Thu, 4 Jun 2015 13:16:21 +0000 (UTC) Received: from littlebeast.usersys.redhat.com ([10.34.251.126]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t54DGHae019061; Thu, 4 Jun 2015 09:16:21 -0400 Received: by littlebeast.usersys.redhat.com (Postfix, from userid 23532) id 01F3F1014CF; Thu, 4 Jun 2015 15:16:16 +0200 (CEST) From: Artem Savkov To: users@conserver.com Subject: [PATCH] Exporting userinfo env variables to task. Date: Thu, 4 Jun 2015 15:16:13 +0200 Message-Id: <1433423773-24714-1-git-send-email-asavkov@redhat.com> X-Scanned-By: MIMEDefang 2.72 on 198.151.248.21 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -1.51 () BAYES_00,T_RP_MATCHES_RCVD X-BeenThere: users@conserver.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Conserver Users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2015 13:16:25 -0000 Exporting environmental variables to task ran by user: CONSERVER_USERNAME - username user logged in to conserver with CONSERVER_PEERNAME - user location, that is hostname user connected from Signed-off-by: Artem Savkov --- conserver/group.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conserver/group.c b/conserver/group.c index 99f0fcd..1a0bab9 100644 --- a/conserver/group.c +++ b/conserver/group.c @@ -1740,7 +1740,7 @@ SendBreak(CONSCLIENT *pCLServing, CONSENT *pCEServing, short bt) } static int -StartTask(CONSENT *pCE, char *cmd, uid_t uid, gid_t gid) +StartTask(CONSCLIENT *pCLServing, CONSENT *pCE, char *cmd, uid_t uid, gid_t gid) { int i; extern char **environ; @@ -1820,6 +1820,9 @@ StartTask(CONSENT *pCE, char *cmd, uid_t uid, gid_t gid) setuid(uid); } + setenv("CONSERVER_USERNAME", pCLServing->username->string, 1); + setenv("CONSERVER_PEERNAME", pCLServing->peername->string, 1); + SetupTty(pCE, 1); pcShell = "/bin/sh"; @@ -1893,7 +1896,7 @@ InvokeTask(CONSCLIENT *pCLServing, CONSENT *pCEServing, char id) ProcessSubst(substData, &cmd, (char **)0, (char *)0, t->subst); } - if (StartTask(pCEServing, cmd, t->uid, t->gid) == 0) { + if (StartTask(pCLServing, pCEServing, cmd, t->uid, t->gid) == 0) { CONSCLIENT *pCL; char *detail; -- 2.1.0