[CentOS] Setting PS1 for ordinary users

Jay Leafey jay.leafey at mindless.com
Wed Oct 10 21:52:35 EDT 2012

On 10/10/2012 04:43 PM, Nux! wrote:
> On 10.10.2012 19:52, m.roth at 5-cent.us wrote:
>>> I have loked in/etc/profile.d and /etc/bashrc and I cannot see what
>>> condition is triggering the different behaviour.
>> I'd guess whether there's a ~/.bashrc. I've got mine set the way I
>> want
>> it; I don't remember a ~/.bashrc being automagically created for new
>> users.
> New users' homedirs are populated from /etc/skell if you use useradd,
> which do contain a .bashrc (and more).

Another way (there is ALWAYS another way!) to do this for new accounts 
is to modify the /etc/default/useradd file and set the SHELL= line to 
use the shell you want.  The unaltered file on my C6.3 box contains 

Of course, that doesn't help on existing accounts.

Jay Leafey - jay.leafey at mindless.com
Memphis, TN

More information about the CentOS mailing list