bash 4.1.1 fails to login in restricted mode

2010-04-28 Thread Isaac Salsberg
When invoked as rbash login shell in MAC OS X 10.4.11, it fails to execute in restricted mode, allowing cd and the use of / as leading command. This is the installed version: GNU bash, version 4.1.0(1)-release (powerpc-apple-darwin8.11.0) Copyright (C) 2009 Free Software Foundation, Inc. Licens

How to start bash without inheriting any environment variables and user level profiles (such as .bash_profile)?

2010-04-28 Thread Peng Yu
I'm wondering how to start bash without inheriting any environment variables and user level profiles (such as .bash_profile). Would you please let me know what option to use? -- Regards, Peng

Re: How to start bash without inheriting any environment variables and user level profiles (such as .bash_profile)?

2010-04-28 Thread Greg Wooledge
On Wed, Apr 28, 2010 at 02:38:01PM -0500, Peng Yu wrote: > I'm wondering how to start bash without inheriting any environment > variables and user level profiles (such as .bash_profile). Would you > please let me know what option to use? env - "$(command -v bash)" --noprofile --norc You'd proba

Re: How to start bash without inheriting any environment variables and user level profiles (such as .bash_profile)?

2010-04-28 Thread Bob Proulx
Peng Yu wrote: > I'm wondering how to start bash without inheriting any environment > variables and user level profiles (such as .bash_profile). Would you > please let me know what option to use? At login time only a bare minimum of environment variables exist. It is already almost a minimal set.

Re: How to start bash without inheriting any environment variables and user level profiles (such as .bash_profile)?

2010-04-28 Thread Chet Ramey
> I'm wondering how to start bash without inheriting any environment > variables and user level profiles (such as .bash_profile). Would you > please let me know what option to use? env -i bash --norc -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vit

Re: bash 4.1.1 fails to login in restricted mode

2010-04-28 Thread Chet Ramey
On 4/26/10 7:38 PM, Isaac Salsberg wrote: > When invoked as rbash login shell in MAC OS X 10.4.11, it fails to > execute in restricted mode, allowing cd and the use of / as leading > command. What is $0 set to when bash is invoked as a login shell named rbash? -- ``The lyf so short, the craft s