[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: |
Jesse Hathaway |
Subject: |
Re: [Help-bash] ignore user rc/profile files when ssh to the use login shell (bash) |
Date: |
Thu, 23 Aug 2018 12:41:53 -0500 |
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