[CentOS] Setting PS1 for ordinary users

Thu Oct 11 01:52:35 UTC 2012
Jay Leafey <jay.leafey at mindless.com>

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