I've not used this command, but from the
man page what you did looks right. (For the user1 line that is -- it looks like you dropped a colon in the user50 line, but I am guessing that was just a typo in your post.) So I don't know what went wrong, but I might be able to point you in the right direction for trouble shooting. The problem is an environmental variable called
PS1. By default it's value is
\s-\v\$. You can check that easily by:
Code:
#su -l user1
$echo $PS1
This value gives the prompt you are showing. (Look at
bash's
man page for an explanation of PS1 and how the special characters -- those preceded with a backslash -- are interpreted.) Most distros will use one or more of
bash's startup/configuration files to alter this to something nicer. I am talking about files like
/etc/profile /etc/bashrc,
~/.bash_profile,
~/.bashrc, and files in
/etc/profile.d. You might look through these files and see what is different for the "normal" accounts and the new ones. One thing I would definitely look at is to make sure the files from
/etc/skel got copied into the newly created account's home directories.