LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Set default shell in NIS without ypchsh or chsh (https://www.linuxquestions.org/questions/linux-general-1/set-default-shell-in-nis-without-ypchsh-or-chsh-730427/)

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?

Thanks

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
+your_username_here::::::/bin/bash


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