Ubuntu remote login - different shells

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.
Putty Screens

$ echo $PS1
Left:
[e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$Right:
$debian_chroot:+($debian_chroot)u@h:w$
command-line putty
add a comment |Â
up vote
0
down vote
favorite
Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.
Putty Screens

$ echo $PS1
Left:
[e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$Right:
$debian_chroot:+($debian_chroot)u@h:w$
command-line putty
Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
â steeldriver
Feb 7 at 1:52
I would like to change the right shell so it behaves and looks like the left.
â xbraatz
Feb 7 at 2:01
I would alsoecho $PS1for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
â guiverc
Feb 7 at 2:48
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.
Putty Screens

$ echo $PS1
Left:
[e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$Right:
$debian_chroot:+($debian_chroot)u@h:w$
command-line putty
Why does logging into one account yield a shell with the name of the user, as well as color coded files/folders and the other shell in just "$" and only white text? See attached. I would like both sign ins to look like the left.
Putty Screens

$ echo $PS1
Left:
[e]0;u@h: wa]$debian_chroot:+($debian_chroot)u@h:w$Right:
$debian_chroot:+($debian_chroot)u@h:w$
command-line putty
command-line putty
edited Feb 7 at 14:09
dessert
20k55795
20k55795
asked Feb 7 at 1:41
xbraatz
32
32
Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
â steeldriver
Feb 7 at 1:52
I would like to change the right shell so it behaves and looks like the left.
â xbraatz
Feb 7 at 2:01
I would alsoecho $PS1for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
â guiverc
Feb 7 at 2:48
add a comment |Â
Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
â steeldriver
Feb 7 at 1:52
I would like to change the right shell so it behaves and looks like the left.
â xbraatz
Feb 7 at 2:01
I would alsoecho $PS1for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.
â guiverc
Feb 7 at 2:48
Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
â steeldriver
Feb 7 at 1:52
Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
â steeldriver
Feb 7 at 1:52
I would like to change the right shell so it behaves and looks like the left.
â xbraatz
Feb 7 at 2:01
I would like to change the right shell so it behaves and looks like the left.
â xbraatz
Feb 7 at 2:01
I would also
echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.â guiverc
Feb 7 at 2:48
I would also
echo $PS1 for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.â guiverc
Feb 7 at 2:48
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.
To change your shell to Bash, try logging in as the given user and then:
chsh -s /bin/bash
Or as root (eg with sudo), try
chsh -s /bin/bash user
How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.
To change your shell to Bash, try logging in as the given user and then:
chsh -s /bin/bash
Or as root (eg with sudo), try
chsh -s /bin/bash user
How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).
add a comment |Â
up vote
2
down vote
accepted
I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.
To change your shell to Bash, try logging in as the given user and then:
chsh -s /bin/bash
Or as root (eg with sudo), try
chsh -s /bin/bash user
How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.
To change your shell to Bash, try logging in as the given user and then:
chsh -s /bin/bash
Or as root (eg with sudo), try
chsh -s /bin/bash user
How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).
I would guess you're using different shells. What you see on the left is the default prompt for the Bash shell, and what is on the right might be the system shell: Dash.
To change your shell to Bash, try logging in as the given user and then:
chsh -s /bin/bash
Or as root (eg with sudo), try
chsh -s /bin/bash user
How you ended up with a shell other than Bash is another matter: perhaps that user was created as a system user or was created by some software directly modifying /etc/passwd instead of the usual adduser command (or even useradd).
edited Feb 7 at 2:07
answered Feb 7 at 2:05
thomasrutter
25.4k46086
25.4k46086
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003730%2fubuntu-remote-login-different-shells%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Are you asking how to change the second user's login shell - or how to change the prompt string and LS_COLORS in spite of the different shell?
â steeldriver
Feb 7 at 1:52
I would like to change the right shell so it behaves and looks like the left.
â xbraatz
Feb 7 at 2:01
I would also
echo $PS1for each (ie. show your prompt) in case they are setup differently. Yes it could be different shells are default for the different users.â guiverc
Feb 7 at 2:48