(aix 5.1 ml3)
I have a user fred with home directory /home/fred1
I have an alternate environment for fred at /home/fred2
I want to be able to
su - fred -c "do something here with $HOME = /home/fred2"
(fred's .profile is different in fred1 & fred2)
I could chuser fred before and afterthe su to set and reset the home directory - but ther must be a better way?
I have a user fred with home directory /home/fred1
I have an alternate environment for fred at /home/fred2
I want to be able to
su - fred -c "do something here with $HOME = /home/fred2"
(fred's .profile is different in fred1 & fred2)
I could chuser fred before and afterthe su to set and reset the home directory - but ther must be a better way?