userad and /bin/sh problem
Hello!
I installed Ubuntu 7.04 Server edition. Everything is ok, I created one user account during instalation as Ubuntu have root user disabled by default! Now I want to add some users. I added a user with Code:
sudo useradd -m some_user Code:
.bash_logout - command completion (TAB); instead of command completion I get real tab space - command history (up/down keys); now my cursor goes up and down the screen All this things works on my primary account that was created during install. Why? I checked and the owner of every .bash* file is some_user. It seems as .bash* files are not read or there is something else? Best regards, |
Is your shell /bin/sh or /bin/bash? If its /bin/sh then you probably won't have the fancy features like tab completion and history.
|
Look at the /etc/passwd file for the user.
The last field represents the shell to spawn for that user ... like Reddazz mentioned ... you probably want /bin/bash. The -s switch for useradd specifies the shell. See the man page. |
Thank you both very much! You were right. I checked the /etc/passwd and some_user had /bin/sh instead of /bin/bash as its shell.
I used command Code:
sudo usermod -s /bin/bash some_user Code:
useradd -D Code:
sudo useradd -D -s /bin/bash Best regards, |
All times are GMT -5. The time now is 02:17 PM. |