In any ‘shell’, a sudo (do as switched user) environment is NOT necessarily identical to the environment encountered by a root login, you can compare any differences with env
in both.
su root
would be a better choice
In any ‘shell’, a sudo (do as switched user) environment is NOT necessarily identical to the environment encountered by a root login, you can compare any differences with env
in both.
su root
would be a better choice