LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Edit a NIS User's default Shell (https://www.linuxquestions.org/questions/linux-server-73/edit-a-nis-users-default-shell-748985/)

njmase 08-20-2009 06:21 AM

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

chrism01 08-21-2009 12:22 AM

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.

njmase 08-21-2009 04:33 AM

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 :)


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