su does not load .bash_profile and therefore is a completely different application than with any other user. This one is different, considering .bash_profile is indeed used for logins for other users.> On May 13, 2019, at 5:25 PM, Pete Biggs <pete at biggs.org.uk> wrote: > >> >> man su doesn?t apply to root with regards to the files loaded up upon >> login. > > Could you explain what you mean by that.Cheers, Bee
On Tue, 14 May 2019, Bee.Lists wrote:> su does not load .bash_profile and therefore is a completely different application than with any other user. This one is different, considering .bash_profile is indeed used for logins for other users.You misunderstand. su behaves the same when switching to root as to any other account. su - is probably the command you're looking for. jh
OK I think you need to read previous posts on this. I?m not looking for any other command.> On May 14, 2019, at 5:10 AM, John Hodrien <J.H.Hodrien at leeds.ac.uk> wrote: > > You misunderstand. su behaves the same when switching to root as to any other account. > > su - > > is probably the command you're looking for.Cheers, Bee
On Tue, 2019-05-14 at 04:50 -0400, Bee.Lists wrote:> su does not load .bash_profile and therefore is a completely > different application than with any other user. This one is > different, considering .bash_profile is indeed used for logins for > other users.su is an application for switching from one user to another. It behaves the same way whether you are switching from user A to user B, or to user root. su is NOT the same as logging in with that user ID. If you login as root at the console, root's .bash_profile would be read. P.
> On May 14, 2019, at 6:02 AM, Pete Biggs <pete at biggs.org.uk> wrote: > > su is NOT the same as logging in with that user ID. If you login as > root at the console, root's .bash_profile would be read.I can count those instances on one hand over the last 40 years. Hence the question of switching from another user. I covered that in the thread. Cheers, Bee