Re: Setting PS1 for ordinary users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/10/2012 04:43 PM, Nux! wrote:
On 10.10.2012 19:52, m.roth@xxxxxxxxx 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 "SHELL=/bin/bash".

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

YMMV
--
Jay Leafey - jay.leafey@xxxxxxxxxxxx
Memphis, TN

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux