From owner-freebsd-questions@FreeBSD.ORG Tue Mar 13 00:14:20 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 D6FCB106566B for ; Tue, 13 Mar 2012 00:14:20 +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 951C38FC08 for ; Tue, 13 Mar 2012 00:14:20 +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 515C11F3B5; Tue, 13 Mar 2012 01:13:52 +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 q2D0DqfZ002594; Tue, 13 Mar 2012 01:13:52 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 13 Mar 2012 01:13:52 +0100 From: Polytropon To: "Edward M." Message-Id: <20120313011352.17af0a5a.freebsd@edvax.de> In-Reply-To: <4F5E87FA.7090001@gmail.com> References: <4F5E4C2A.1020005@tundraware.com> <4F5E6D3A.50302@gmail.com> <20120312231000.4bb530e1.freebsd@edvax.de> <4F5E7687.5070808@gmail.com> <20120312232300.4da8ebf3.freebsd@edvax.de> <4F5E7D1F.9030703@gmail.com> <4F5E87FA.7090001@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: Tue, 13 Mar 2012 00:14:20 -0000 On Mon, 12 Mar 2012 16:34:18 -0700, Edward M. wrote: > On 03/12/2012 03:47 PM, Edward M. wrote: > > On 03/12/2012 03:23 PM, Polytropon wrote: > >> 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. > >> > >> > >> > > Now i gotta try this out. Off to > > hosed my system. > Does not work. Could not login, it shows "Couldn't open *-joerc." Very strange message. I know there's a .joerc in ~ (for the user) and a global /usr/local/etc/joe/rjoerc (for system-wide use). I also get this message: Couldn't open '*-joerc' Maybe this is because joe isn't a shell and doesn't set some required variables, such as $PATH or $HOME, and joe cannot find its rc files... The reason is what I see in /usr/ports/editors/joe/work/joe-3.7/main.c line 353 and above. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...