PS1 Prompt Only Showing "$" For Domain Users

by James Hughes   Last Updated March 10, 2017 16:02 PM

Regardless of which directory I'm in the PS1 prompt only displays $ for domain users, whereas, if I login using a local user the prompt displays as expected.

The ~/.bashrc file for the test domain user has been restored as per the instructions here.

If I su into a local user and then back into the domain user the prompt displays correctly.

Any ideas on how to fix this?



Answers 1


The problem appeared to be that when creating a new account for the domain user the sssd service was setting the dafault shell to be dash.

The solution to this is to edit the sssd.conf file to include the following:

[nss]
default_shell = /bin/bash

[pam]
default_shell = /bin/bash

Which ensures that all domain users are created with their default shells set to bash.

James Hughes
James Hughes
March 13, 2017 14:43 PM

Related Questions


"export PS1=" for customizing shell prompting

Updated December 07, 2017 11:02 AM

problem setting up bash_profile

Updated February 20, 2017 10:02 AM


Prepend current git branch in terminal

Updated October 31, 2017 04:02 AM

change prompt of terminal, permanently | how

Updated November 21, 2017 12:02 PM