Newly created user on Ubuntu Server has the wrong shell prompt
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I've created a new user in the Ubuntu 18.04.01 like this:
sudo useradd svn
sudo passwd svn
sudo mkhomedir_helper svn
sudo usermod -d /home/svn -m svn
Problem is, that if I switch to the user by su svn
I don't see a standard prompt command. Instead of standard prompt:
svn@svn-server:/srv/svn/$
I see only:
$
despite the content of the file /home/svn/.bashrc
. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.
If I run echo $PS1
as svn
user I get empty result.
How can I fix this user?
ubuntu users administration useradd
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
I've created a new user in the Ubuntu 18.04.01 like this:
sudo useradd svn
sudo passwd svn
sudo mkhomedir_helper svn
sudo usermod -d /home/svn -m svn
Problem is, that if I switch to the user by su svn
I don't see a standard prompt command. Instead of standard prompt:
svn@svn-server:/srv/svn/$
I see only:
$
despite the content of the file /home/svn/.bashrc
. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.
If I run echo $PS1
as svn
user I get empty result.
How can I fix this user?
ubuntu users administration useradd
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've created a new user in the Ubuntu 18.04.01 like this:
sudo useradd svn
sudo passwd svn
sudo mkhomedir_helper svn
sudo usermod -d /home/svn -m svn
Problem is, that if I switch to the user by su svn
I don't see a standard prompt command. Instead of standard prompt:
svn@svn-server:/srv/svn/$
I see only:
$
despite the content of the file /home/svn/.bashrc
. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.
If I run echo $PS1
as svn
user I get empty result.
How can I fix this user?
ubuntu users administration useradd
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I've created a new user in the Ubuntu 18.04.01 like this:
sudo useradd svn
sudo passwd svn
sudo mkhomedir_helper svn
sudo usermod -d /home/svn -m svn
Problem is, that if I switch to the user by su svn
I don't see a standard prompt command. Instead of standard prompt:
svn@svn-server:/srv/svn/$
I see only:
$
despite the content of the file /home/svn/.bashrc
. And in this "crippled" prompt I also cannot use TAB key to autocomplete paths.
If I run echo $PS1
as svn
user I get empty result.
How can I fix this user?
ubuntu users administration useradd
ubuntu users administration useradd
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 24 mins ago


Kusalananda
112k15216344
112k15216344
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 hour ago
zdenek
1083
1083
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
zdenek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
Check the shell, you have assigned. If you have tried the useradd
command in Ubuntu 18 Version, the default login shell will be /bin/sh
and you will get output like you mentioned. You can change the login shell by executing the command:
sudo usermod -s /bin/bash svn
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
excellent first answer! +1
– Fabby
26 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Check the shell, you have assigned. If you have tried the useradd
command in Ubuntu 18 Version, the default login shell will be /bin/sh
and you will get output like you mentioned. You can change the login shell by executing the command:
sudo usermod -s /bin/bash svn
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
excellent first answer! +1
– Fabby
26 mins ago
add a comment |Â
up vote
4
down vote
accepted
Check the shell, you have assigned. If you have tried the useradd
command in Ubuntu 18 Version, the default login shell will be /bin/sh
and you will get output like you mentioned. You can change the login shell by executing the command:
sudo usermod -s /bin/bash svn
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
excellent first answer! +1
– Fabby
26 mins ago
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Check the shell, you have assigned. If you have tried the useradd
command in Ubuntu 18 Version, the default login shell will be /bin/sh
and you will get output like you mentioned. You can change the login shell by executing the command:
sudo usermod -s /bin/bash svn
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Check the shell, you have assigned. If you have tried the useradd
command in Ubuntu 18 Version, the default login shell will be /bin/sh
and you will get output like you mentioned. You can change the login shell by executing the command:
sudo usermod -s /bin/bash svn
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 25 mins ago


Fabby
2,6431823
2,6431823
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 1 hour ago


BYRAKUR SURESH BABU
562
562
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
BYRAKUR SURESH BABU is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
excellent first answer! +1
– Fabby
26 mins ago
add a comment |Â
excellent first answer! +1
– Fabby
26 mins ago
excellent first answer! +1
– Fabby
26 mins ago
excellent first answer! +1
– Fabby
26 mins ago
add a comment |Â
zdenek is a new contributor. Be nice, and check out our Code of Conduct.
zdenek is a new contributor. Be nice, and check out our Code of Conduct.
zdenek is a new contributor. Be nice, and check out our Code of Conduct.
zdenek is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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%2funix.stackexchange.com%2fquestions%2f479086%2fnewly-created-user-on-ubuntu-server-has-the-wrong-shell-prompt%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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');
);
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');
);
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