From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 22:23:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 83B3A1065673 for ; Mon, 12 Mar 2012 22:23:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 435A88FC12 for ; Mon, 12 Mar 2012 22:23:02 +0000 (UTC) Received: from r56.edvax.de (port-92-195-185-71.dynamic.qsc.de [92.195.185.71]) by mx02.qsc.de (Postfix) with ESMTP id 4AD241EA21; Mon, 12 Mar 2012 23:23:01 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q2CMN03m002228; Mon, 12 Mar 2012 23:23:00 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 12 Mar 2012 23:23:00 +0100 From: Polytropon To: "Edward M." Message-Id: <20120312232300.4da8ebf3.freebsd@edvax.de> In-Reply-To: <4F5E7687.5070808@gmail.com> References: <4F5E4C2A.1020005@tundraware.com> <4F5E6D3A.50302@gmail.com> <20120312231000.4bb530e1.freebsd@edvax.de> <4F5E7687.5070808@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Editor With NO Shell Access? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 22:23:02 -0000 On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote: > On 03/12/2012 03:10 PM, Polytropon wrote: > > /etc/shells to work, but a passwd entry like > > > > bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe > > > I think this would not let the user to login,etc I'm not sure... I assume logging in is handled by /usr/bin/login, and control is then (i. e. after successful login) transferred to the login shell, which is the program specified in the "shell" field (see "man 5 passwd") of /etc/passwd. How is login supposed to know if the program specified in this field is actually a dialog shell? >From "man 1 login" I read that many shells have a built-in login command, but /usr/bin/login is the system's default binary for this purpose if the "shell" (quotes deserved if it is an editor as shown in my assumption) has no capability of performing a login. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...