From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 22:43:22 2012 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 812BA106566B for ; Mon, 12 Mar 2012 22:43:22 +0000 (UTC) (envelope-from eam1edward@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 365538FC19 for ; Mon, 12 Mar 2012 22:43:21 +0000 (UTC) Received: by ggnk4 with SMTP id k4so3770281ggn.13 for ; Mon, 12 Mar 2012 15:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=C7dkotTbFhg1IQySPWYaZO5zbBiG7Fw1qztqoySnsuY=; b=t81cOZi5ZiiQ5UwKqKJih/Umk5igOOBqfZR6IqLWwWPMxrleYhIZVIsmTnROfM9e+W CAh1gqByVS4yt/DQNd4vBoCmh6AQ50VlvlxYuhgSrAweePzNs6/wtTgFFReDOMIbgnpt BE74IXOVB9E6A5exD2qeuwONzZBeNAoZlyQ5e8zw6jp0S6Oy3xQLbrY8x3PqIxIA4qN1 L0Pdz5SUxF2jcdWGjzrYZNKZ85TNZzbtWhb7V3OQe2G70TLM+07uINWFxWP7MbCIqq6E KzAG+UDVDue7upIWPUwLz63IVwijQorBgRey0W8PrerMQAe2qmPXcWwgwQeX3hNZvjl8 0Umw== Received: by 10.182.109.106 with SMTP id hr10mr9756493obb.27.1331592201450; Mon, 12 Mar 2012 15:43:21 -0700 (PDT) Received: from localhost.localdomain ([174.134.109.226]) by mx.google.com with ESMTPS id x6sm12532154oex.12.2012.03.12.15.43.20 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 15:43:21 -0700 (PDT) Message-ID: <4F5E7D1F.9030703@gmail.com> Date: Mon, 12 Mar 2012 15:47:59 -0700 From: "Edward M." User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120225 Thunderbird/10.0.1 MIME-Version: 1.0 To: Polytropon References: <4F5E4C2A.1020005@tundraware.com> <4F5E6D3A.50302@gmail.com> <20120312231000.4bb530e1.freebsd@edvax.de> <4F5E7687.5070808@gmail.com> <20120312232300.4da8ebf3.freebsd@edvax.de> In-Reply-To: <20120312232300.4da8ebf3.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 22:43:22 -0000 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.