I have some troubles when using command su.
+ I created an user in a machine Sun blade100:
user/user with home: /export/home/user.
in /export/home/user/.bash_profile, I set the variable PATH as the same in /.bash_profile of root.
+ in /etc/passwd, the home directory of user is /export/home/user (bash sell)
+ when I login as root, the variable PATH of root is set correctly. But when I su to user, the variable PATH of user is changed.
please help me to overcome this problem, thanks in advance
I also had this problem. I know "su - root" is supposed to source login files, but it wouldn't work on some machines running Solaris 7. I also had the same problem with HP-UX 11. Sometimes it would work, sometimes it wouldn't. Oh well.