bash prompt after ldap authentication
Hi,
could someone help me with the following: why after user is authenticated by ldap server, i see the bash prompt? How could I fix this? [root@rh1 ~]# ssh jake@192.168.122.194 jake@192.168.122.194's password: -bash-4.2$ Many thanks! |
After you run any command in the command-line terminal it's normal to see the bash prompt.
Just like in my example when I queried the system for my network card. Code:
bash-4.3# lspci | grep -i network |
what do you expect (to happen)? with ssh you have just logged into 192.168.122.194 and have got a prompt. What do you want to achieve?
|
Hi,
thank you for your replies! I was expecting to see something like this [jake@rh3 ~]# Regards, Christos |
you need to set PS1 to configure it.
see man bash about it, or https://www.kirsle.net/wizards/ps1.html for example |
I have entered the
export PS1="[\u@\h \W]\\$ " in the ~.bashrc in /root is that correct? |
syntactically correct, although double \ is not required.
usually PS1 of root contains # and user's PS1 contains $, but obviously you can use what you set. |
it doesn't work for me, I copied paste it and then access it by ssh jake@192.168.122.194
but result is the same. |
because that is another user (jake), not root, so you need to set PS1 in ~/.bashrc of that user.
|
Many thanks it works now!
|
What worked?
|
All times are GMT -5. The time now is 01:23 AM. |