From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 16:08:36 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 D6E8A16A418 for ; Fri, 9 Nov 2007 16:08:36 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 25F5F13C491 for ; Fri, 9 Nov 2007 16:08:35 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lA9G8FUh022181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 18:08:22 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id lA9G8AMd015132; Fri, 9 Nov 2007 18:08:10 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id lA9G89NI015131; Fri, 9 Nov 2007 18:08:10 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 9 Nov 2007 18:08:09 +0200 From: Giorgos Keramidas To: Andrew Pantyukhin Message-ID: <20071109160809.GA14984@kobe.laptop> References: <472647A0.3030009@brookes.ac.uk> <20071030113912.GB3941@kobe.laptop> <20071109155558.GF8728@amilo.cenkes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071109155558.GF8728@amilo.cenkes.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.992, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.41, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No 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:08:36 -0000 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 :-)