define start-bash for user...
Hello
I don't know how, but anyhow I managed it to get the /bin/sh-bash as start-bash for a user on my router-system... so...when he's logging on to this router... remote or local...he's always getting the bash /bin/sh and not the bash /bin/bash is there a configfile, where i can define this first login-bash for a user?? thanks |
i already tried:
Quote:
please help... thanks |
Edit /etc/passwd and edit the pablo line. The last part (after the last ":") is the path to the shell to be used as default.
Håkan |
Quote:
still the same problem |
when I'm logging in as pablo, I'm using this "bash":
Code:
/bin/bash so...I think,... it's just a problem ... of appearance...but where have I got to set which options..? (it's the same bash) |
and my alias'....that are defined in the file ~/.bashrc don't work either....
just as a hint |
You need to add a value in your .bash_profile file for PS1 as that's where bash will look for your command prompt.
Something like this in your .bash_profile should do the trick: PS1="[pablo@\h \W]$" Edit >> Should work if you stick it in your .bashrc as well. |
The entry I made that you was suggesting me didn't make any effect....
I would estimate, my .bashrc of this user isn't executed (and the .bashrc all other users as well).....cause the alias' don't work either... |
well what do you have in your .bash_profile file as this is what is read first when you login?
|
these are my entries:
Quote:
thanks |
no, not your .bashrc file. Do you have a file called .bash_profile in your home dir?
If not create one that looks something like this: # .bash_profile # Load up your .bashrc file if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin BASH_ENV=$HOME/.bashrc USERNAME="" export USERNAME BASH_ENV PATH . $HOME/.bashrc |
I've copied exactly the same entry you've just posted in my /~/.bash_profile and it didn't have an effect....... still the same problem
maybe... right-access could be a reason...here the chmod's:
|
maybe it's helpful to say... that... aliases of the user "root" are working and his path's, too....
aliases of user "pablo" aren't working ... his path's don't work either.... ...which are my possibilities to solve this problem'? |
I've checked every detailed setting on my router...but everything was set right....isn't there a solution?
|
if you just can get me a "well-working" /~/.bashrc_profile - configfile...
....I would be hilarious... thanks |
All times are GMT -5. The time now is 10:36 AM. |