-   Linux - General (
-   -   Set default shell in NIS without ypchsh or chsh (

arobinson74 06-03-2009 11:55 AM

Set default shell in NIS without ypchsh or chsh
At my work, they are providing me with a remote linux box with RedHat EL5. Thy have a horrid configuration of using NIS and having our home directories mounted via NIS.

They will not let me change the default shell on my YP account as they say that not all machines in the farm have /bin/bash installed. Therefore, my NIS default shell is stuck at /bin/csh and I can do nothing to change that.

How can I get the box to continue to run with NIS but have my default shell changed for this one local machine?

I have tried to export SHELL in /etc/profile, use "setenv SHELL /bin/bash" in my .cshrc and the ~/.login with no luck.

How can I get this to work?


trey85stang 06-04-2009 09:37 PM

i hate csh, Im with you. I dont see why they woundt change your account if thats what you want... but in the .login just exec /bin/bash should get you switched over.

arobinson74 09-02-2009 01:18 AM

FYI, I got it to work using /etc/nsswitch.conf and
passwd: compat
passwd_compat: nis

Then adding an override in my /etc/passwd

All times are GMT -5. The time now is 04:31 AM.