Tab and prompt only has $
in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all the commands in ubuntu.
Moreover, when I do sudo su, tab and also command prompt comes.
How to get the username@hostname and tab working in the normal user mode
Thank You in advance.
16.04 command-line active-directory
|
show 2 more comments
in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all the commands in ubuntu.
Moreover, when I do sudo su, tab and also command prompt comes.
How to get the username@hostname and tab working in the normal user mode
Thank You in advance.
16.04 command-line active-directory
The prompt is kept in thePS1
environment variable. Readman bash
, especially thePROMPTING
section - it tells you all the things you can have in your prompt.
– waltinator
Mar 19 '18 at 14:21
4
Are you sure the user configuration on the domain server hasbash
as the users' login shell (rather thansh
)?
– steeldriver
Mar 19 '18 at 14:26
@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be/bin/bash
withuseradd
it sets it to Dash, which is just the$
prompt and tab completion-less. Ifbash
isn't set,/bin/sh
is the fallback, and that's actuallydash
– Thomas Ward♦
Mar 19 '18 at 14:26
@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell -PS1
is in the POSIX Shell Standard.
– waltinator
Mar 19 '18 at 14:32
@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 '18 at 7:36
|
show 2 more comments
in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all the commands in ubuntu.
Moreover, when I do sudo su, tab and also command prompt comes.
How to get the username@hostname and tab working in the normal user mode
Thank You in advance.
16.04 command-line active-directory
in our organisation we have ubuntu systems in domain, due to which we are not able to get the username and hostname in the command prompt instead it just shows the "$" sign when i open the command prompt, also tab does not work for all the commands in ubuntu.
Moreover, when I do sudo su, tab and also command prompt comes.
How to get the username@hostname and tab working in the normal user mode
Thank You in advance.
16.04 command-line active-directory
16.04 command-line active-directory
edited yesterday
anonymous2
3,35241849
3,35241849
asked Mar 19 '18 at 14:18
user2041875user2041875
62
62
The prompt is kept in thePS1
environment variable. Readman bash
, especially thePROMPTING
section - it tells you all the things you can have in your prompt.
– waltinator
Mar 19 '18 at 14:21
4
Are you sure the user configuration on the domain server hasbash
as the users' login shell (rather thansh
)?
– steeldriver
Mar 19 '18 at 14:26
@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be/bin/bash
withuseradd
it sets it to Dash, which is just the$
prompt and tab completion-less. Ifbash
isn't set,/bin/sh
is the fallback, and that's actuallydash
– Thomas Ward♦
Mar 19 '18 at 14:26
@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell -PS1
is in the POSIX Shell Standard.
– waltinator
Mar 19 '18 at 14:32
@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 '18 at 7:36
|
show 2 more comments
The prompt is kept in thePS1
environment variable. Readman bash
, especially thePROMPTING
section - it tells you all the things you can have in your prompt.
– waltinator
Mar 19 '18 at 14:21
4
Are you sure the user configuration on the domain server hasbash
as the users' login shell (rather thansh
)?
– steeldriver
Mar 19 '18 at 14:26
@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be/bin/bash
withuseradd
it sets it to Dash, which is just the$
prompt and tab completion-less. Ifbash
isn't set,/bin/sh
is the fallback, and that's actuallydash
– Thomas Ward♦
Mar 19 '18 at 14:26
@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell -PS1
is in the POSIX Shell Standard.
– waltinator
Mar 19 '18 at 14:32
@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 '18 at 7:36
The prompt is kept in the
PS1
environment variable. Read man bash
, especially the PROMPTING
section - it tells you all the things you can have in your prompt.– waltinator
Mar 19 '18 at 14:21
The prompt is kept in the
PS1
environment variable. Read man bash
, especially the PROMPTING
section - it tells you all the things you can have in your prompt.– waltinator
Mar 19 '18 at 14:21
4
4
Are you sure the user configuration on the domain server has
bash
as the users' login shell (rather than sh
)?– steeldriver
Mar 19 '18 at 14:26
Are you sure the user configuration on the domain server has
bash
as the users' login shell (rather than sh
)?– steeldriver
Mar 19 '18 at 14:26
@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be
/bin/bash
with useradd
it sets it to Dash, which is just the $
prompt and tab completion-less. If bash
isn't set, /bin/sh
is the fallback, and that's actually dash
– Thomas Ward♦
Mar 19 '18 at 14:26
@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be
/bin/bash
with useradd
it sets it to Dash, which is just the $
prompt and tab completion-less. If bash
isn't set, /bin/sh
is the fallback, and that's actually dash
– Thomas Ward♦
Mar 19 '18 at 14:26
@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell -
PS1
is in the POSIX Shell Standard.– waltinator
Mar 19 '18 at 14:32
@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell -
PS1
is in the POSIX Shell Standard.– waltinator
Mar 19 '18 at 14:32
@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 '18 at 7:36
@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 '18 at 7:36
|
show 2 more comments
1 Answer
1
active
oldest
votes
edit your /etc/sssd/sssd.conf file to include:
default_shell = /bin/bash
override_shell = /bin/bash
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017321%2ftab-and-prompt-only-has%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
edit your /etc/sssd/sssd.conf file to include:
default_shell = /bin/bash
override_shell = /bin/bash
add a comment |
edit your /etc/sssd/sssd.conf file to include:
default_shell = /bin/bash
override_shell = /bin/bash
add a comment |
edit your /etc/sssd/sssd.conf file to include:
default_shell = /bin/bash
override_shell = /bin/bash
edit your /etc/sssd/sssd.conf file to include:
default_shell = /bin/bash
override_shell = /bin/bash
answered Jul 16 '18 at 13:19
Beth LBeth L
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017321%2ftab-and-prompt-only-has%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The prompt is kept in the
PS1
environment variable. Readman bash
, especially thePROMPTING
section - it tells you all the things you can have in your prompt.– waltinator
Mar 19 '18 at 14:21
4
Are you sure the user configuration on the domain server has
bash
as the users' login shell (rather thansh
)?– steeldriver
Mar 19 '18 at 14:26
@waltinator you assume that the default for users via Samba / domain auth is actually Bash. If you don't define the shell to be
/bin/bash
withuseradd
it sets it to Dash, which is just the$
prompt and tab completion-less. Ifbash
isn't set,/bin/sh
is the fallback, and that's actuallydash
– Thomas Ward♦
Mar 19 '18 at 14:26
@askubuntu.com/users/10616/thomas-ward I assume a POSIX shell -
PS1
is in the POSIX Shell Standard.– waltinator
Mar 19 '18 at 14:32
@steeldriver: not sure for this ! do you have any steps to check for that? Currently i go on sudo su, the shell i am getting is /bin/bash but in non-rooted environment it is /bin/sh.
– user2041875
Mar 20 '18 at 7:36