PDA

View Full Version : [ubuntu] Create users on Ubuntu Server


dJnEvS
May 3rd, 2008, 02:17 PM
Hello,

I have created a new user on my Ubuntu Server 7.10
using the following commands:

sudo useradd -d /home/username -m username
sudo passwd username


but when I logon to the new user
The only thing i see is the $
I can do anything
But i dont see the path of where i'm at currently
and when pressing arrow up i'm scrolling lines..

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
$ _


arrow up:

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
$



But when i login as administrator I get this:

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
You have new mail
administrator@server:~$ _

How can I fix this?

Thanks in advance
djnevs

PseudoOne
May 3rd, 2008, 02:26 PM
I followed your exact steps on my server:


webmaster@wikifiles.ath.cx:/var/www$ sudo useradd -d /home/username -m username
[sudo] password for webmaster:
webmaster@wikifiles.ath.cx:/var/www$ sudo passwd username
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
webmaster@wikifiles.ath.cx:/var/www$ su username
Password:
$


and then everything I type after that, such as:


$ ls
[...]files[...]
$


do you get anything similar? Perhaps you may upgrade your version of Ubuntu, preferably to Gutsy -> Hardy.

Else what I tried for a wizard based console was: adduser username
instead of useradd username.

I found that this command is much more efficient than it's reciprocal.

dJnEvS
May 3rd, 2008, 02:31 PM
Yea thats exactly what I get!
But I want all my users to be able to do and see anything..
Like, now I only see the $ in command line
and I would like it to be user@server:/path/where/they/are$

PseudoOne
May 3rd, 2008, 02:39 PM
I am able to get

username@wikifiles.ath.cx:/var/www$


after using the adduser command. Are you able to confirm this?

dJnEvS
May 3rd, 2008, 02:50 PM
No, I only see the dollar sign

$

dJnEvS
May 3rd, 2008, 02:54 PM
Else what I tried for a wizard based console was: adduser username
instead of useradd username.

I found that this command is much more efficient than it's reciprocal.

Ahh, that was the problem
I didnt read this post correctly until now.


It's fixed now.
Thank you!