01-31-2006
5,
0
Join Date: Aug 2005
Last Activity: 31 January 2006, 7:52 PM EST
Posts: 5
Thanks Given: 0
Thanked 0 Times in 0 Posts
Hostname lost when changing user
Hello to all,
Does anyone have a clue for the following problem?
When I enter into a terminal console window logged as axadmin user, what I find in the prompt is: “axadmin@sunhost$”.
But, when I switch to root user, with the command “su -“ and enter the correct password, user root is accepted, but the prompt changes to “-s#”.
So, no mention to the user name and hostname, because the expected prompt should be “root@sunhost#”.
This error also happens if I'm axadmin user and I try to log again as axadmin, with command “su - axadmin”. In that case, the prompt becomes “-s$”.
To correct the problem I have to use the command “/bin/uname -S sunhost”.
Has someone experienced this problem before?
Cheers!
Pablo.