flyingbadger
Posts: 2
Joined: Fri Oct 05, 2012 5:15 pm

setting up new user

Fri Oct 05, 2012 5:21 pm

Hi, I've just tried to set up a new user account on the pi, using "sudo useradd -m -G [groups]..[username]. Then added a password...
It seems to work - I can log in fine. what I have noticed is that previously the command line would always start "pi@raspberrypi~$:". . when I log in as the new user - I don't get any stuff like that at the start of the command line. Have I done something wrong?
Thanks!

User avatar
joan
Posts: 14960
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: setting up new user

Fri Oct 05, 2012 5:44 pm

You have done nothing wrong.

You are seeing the default prompt for a new user for your distribution.

The user can change the prompt by editing .bashrc or whatever file is relevant to your distribution.

flyingbadger
Posts: 2
Joined: Fri Oct 05, 2012 5:15 pm

Re: setting up new user

Fri Oct 05, 2012 7:03 pm

thanks!

User avatar
jojopi
Posts: 3274
Joined: Tue Oct 11, 2011 8:38 pm

Re: setting up new user

Fri Oct 05, 2012 8:26 pm

On most debian-based systems, including all but the most recent of the foundation's raspbian images, useradd defaults to a shell of /bin/sh, which is dash. There is no interactive line editing and .bashrc is obviously ignored.

Use the "-s /bin/bash" option to useradd to specify the login shell, or change shell afterwards with chsh or usermod.

Return to “Beginners”