help-bash
[Top][All Lists]
Advanced

[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: Eduardo Bustamante
Subject: Re: [Help-bash] ignore user rc/profile files when ssh to the use login shell (bash)
Date: Thu, 23 Aug 2018 11:04:57 -0700

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]