79293570

Date: 2024-12-19 08:37:04
Score: 2
Natty:
Report link

I have resolved this issue.

don't use su user, use su - user

su user:

Switches to the user without starting a login shell. Inherits the current user's environment.

su - user:

Switches to the user and starts a login shell. It loads the full environment of the user, including .bash_profile.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dhanushkumar