From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 16:34:14 2007 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 EB1CD16A421 for ; Fri, 9 Nov 2007 16:34:14 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from astro.systems.pipex.net (astro.systems.pipex.net [62.241.163.6]) by mx1.freebsd.org (Postfix) with ESMTP id 9842B13C4B3 for ; Fri, 9 Nov 2007 16:34:14 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by astro.systems.pipex.net (Postfix) with ESMTP id 86E8AE00017B; Fri, 9 Nov 2007 16:34:01 +0000 (GMT) Message-ID: <47348BF9.7050402@dial.pipex.com> Date: Fri, 09 Nov 2007 16:34:01 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: Giorgos Keramidas References: <472647A0.3030009@brookes.ac.uk> <20071030113912.GB3941@kobe.laptop> <20071109155558.GF8728@amilo.cenkes.org> <20071109160809.GA14984@kobe.laptop> In-Reply-To: <20071109160809.GA14984@kobe.laptop> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Dangers of using a non-base shell 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: Fri, 09 Nov 2007 16:34:15 -0000 Giorgos Keramidas wrote: >On 2007-11-09 18:55, Andrew Pantyukhin wrote: > > >>On Tue, Oct 30, 2007 at 01:39:12PM +0200, Giorgos Keramidas wrote: >> >> >>>I've been using the following for some time: >>> >>> keramida> su - >>> Password: ******** >>> root# exec env SHELL=/usr/local/bin/bash bash -l >>> >>> >>I know it doesn't work on slolaris^W some Unix flavors, but I've >>been quite happy with "su -m". >> >> > >Heh, putting the Solaris bashing (sic) aside, I can see how the -m >option can be useful some times. After all, it was implemented because >*someone* thought it would be neat to have around :-) > > Also the only way I know on FreeBSD to interactively become a user with no real shell (true, nologin etc). --Alex