LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2009, 06:21 AM   #1
njmase
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Edit a NIS User's default Shell


Hey guys,

Im a fairly noob Unix Sysadmin and need to change a NIS user's default shell from csh to bash. I know that /etc/passwd is just for local accounts and that I need to edit the NIS Maps and then re-compile them.

I cannot seem to find anywhere how I go about editing a user through all my Google searching. Is there a similar file to /etc/passwd somewhere? or do i need to run a command? This is a Solaris 8 box, and commands like chsh and ypchsh do not exist on there.

Can anyone help?

Thanks
 
Old 08-21-2009, 12:22 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
See http://www.linuxhomenetworking.com/w...onfiguring_NIS Section 'Adding New NIS Users'.
Just user usermod -s http://linux.die.net/man/8/usermod , then follow that section.
 
Old 08-21-2009, 04:33 AM   #3
njmase
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the info. I found the NIS maps in /var/yp/ ... some directory/file in there, edited the passwd file and then in /var/yp used the make command and all was good
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Set default shell in NIS without ypchsh or chsh arobinson74 Linux - General 2 09-02-2009 12:18 AM
How do I follow another user's shell commands? rolandw Linux - Newbie 4 06-01-2007 08:26 AM
RHEL3 NIS client not updating with user's new UID rtla50 Linux - General 0 09-15-2006 05:54 PM
changing user's default ftp home location GraemeK Linux - Networking 0 12-31-2003 12:11 PM
Changing a user's default group dogn00dles Linux - Security 4 07-09-2003 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:24 PM.

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