[Users] bash_profile execution
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jul 2 17:49:16 MSK 2021
On 07/02/2021 04:19 PM, Oleksiy Tkachenko wrote:
> I use openVZ since 2011 and bash_profile was always executed on all machines I have access to.
> It's even stored in my new server installation instructions)
.bash_profile is not intended to be executed on "vzctl enter CT".
Never was.
Please give an example when it's executed.
--
Konstantin
>
> Now I'm confused - how to run set of commands when "vzctl enter CID" from HN?
> "su - " is not really a good option since it runs another instance of bash.
>
>
> чт, 1 лип. 2021 о 20:38 jjs - mainphrame <jjs at mainphrame.com <mailto:jjs at mainphrame.com>> пише:
>
> That's odd. I've been using openvz since well, a long time. And as far as I can remember, doing "vzctl enter" has never sourced the login profile, since entering the CTin
> that fashion makes you basically sort of an unknown uid 0 entity.
>
> Jake
>
>
>
>
> On Thu, Jul 1, 2021 at 10:21 AM Oleksiy Tkachenko <mealexat at gmail.com <mailto:mealexat at gmail.com>> wrote:
>
> but my bash_profile's were always executed before I run latest openVZ7 updates.
> that's the point)
> is that bug?
>
>
> чт, 1 лип. 2021 о 20:05 jjs - mainphrame <jjs at mainphrame.com <mailto:jjs at mainphrame.com>> пише:
>
> It would run during an actual login. But entering the CT via vzctl enter bypasses the normal login process.
>
> Jake
>
> On Thu, Jul 1, 2021 at 9:55 AM Oleksiy Tkachenko <mealexat at gmail.com <mailto:mealexat at gmail.com>> wrote:
>
> That's works fine.
> But how to run that automatically during login?
>
> чт, 1 лип. 2021 о 18:19 jjs - mainphrame <jjs at mainphrame.com <mailto:jjs at mainphrame.com>> пише:
>
> This works for me:
>
> su -
>
> Jake
>
> On Thu, Jul 1, 2021 at 8:03 AM Oleksiy Tkachenko <mealexat at gmail.com <mailto:mealexat at gmail.com>> wrote:
>
> I realize that bash_profile not executed automatically when "vzctl enter CID" now.
>
> How to execute it ?
> Thank you!
>
>
> --
> Olexiy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20210702/53fa08a5/attachment-0001.html>
More information about the Users
mailing list