[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] ignore user rc/profile files when ssh to the use login s
From: |
Kobe Meshita |
Subject: |
Re: [Help-bash] ignore user rc/profile files when ssh to the use login shell (bash) |
Date: |
Fri, 24 Aug 2018 10:51:46 +0000 |
Thanks guys,
seems to work :)
-----Original Message-----
From: Eduardo Bustamante [mailto:address@hidden
Sent: Thursday, August 23, 2018 9:05 PM
To: address@hidden
Cc: Kobe Meshita; help-bash
Subject: Re: [Help-bash] ignore user rc/profile files when ssh to the use login
shell (bash)
On Thu, Aug 23, 2018 at 10:52 AM Jesse Hathaway <address@hidden> wrote:
>
> On Thu, Aug 23, 2018 at 10:29 AM, Kobe Meshita <address@hidden> wrote:
> > You may know for any way to NOT load user files ~/.profile ~/.bashrc etc..
> > but only the global file /etc/profile
> > when login interactively to a machine?
>
> you could put something like this in your /etc/profile:
>
> exec bash --rcfile /etc/profile-real -i
>
> And then add any configuration you need to /etc/profile-real
You might also have to provide a --norc and --noprofile