Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-03-2009, 10:55 AM   #1
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
Question 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?

Old 06-04-2009, 08:37 PM   #2
Senior Member
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
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.
Old 09-02-2009, 12:18 AM   #3
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
FYI, I got it to work using /etc/nsswitch.conf and
passwd: compat
passwd_compat: nis

Then adding an override in my /etc/passwd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changed shell using 'chsh'! Now cant login to root !! ?? Help ashikaumanga Linux - General 3 01-22-2009 11:07 PM
LXer: Shell tip: Set the shell prompt and themes in Linux Terminal LXer Syndicated Linux News 0 06-12-2007 03:02 AM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 06:29 AM
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 09:20 AM
ypbind missing- how to set up nis mselvam Linux - Networking 1 06-29-2005 07:25 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration