I am running a serverapplication on a HP-UX machine where I need to handle some of the commands as a specified user called "druser".
When I log on as this user with the command;
sudo -u druser -s
it starts an instance of the shell as that user.
However, it doesn't load that users .profile from his home directory so I don't get the path or prompt for this user.
Each time I have to input this manually after the sudo -u command.
Is there a way to automatically get the users .profile processed when loggin in as a user this way?
PS. Btw the machine is a HP-UX B.11.11 U 9000/800 if that matters. DS.