LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to include in Linux NIS update from solaris (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-include-in-linux-nis-update-from-solaris-442340/)

maztahv00d00 05-06-2006 09:54 PM

how to include in Linux NIS update from solaris
 
please help, we have a NIS server running on solaris 2.6 and i have put up a fedora core 4 for apache...

i wanted to include my fedora core in updating the NIS from our NIS server after executing ypmake...

how to?

thanks.

btmiller 05-07-2006 03:59 PM

Your question doesn't make much sense -- what is it you're trying to do? If you just want the Fedora sdystem to authenticate via NIS, then you just need to edit /etc/yp.conf to add your NIS domain and server (make sure the IP of the server is listed in /etc/hosts -- I don't think NIS will do a DNS lookup). The line would look like:

Code:

domain <mydomain> server <name of SunOS system>
Obviously you need to fill in <nydomain> and <name of SunOS system>. Also make sure that the Linux machine is on a network listed in /etc/ypserv.securenets on the Solaris system (this is required in Linux, but Sun may have a different implementation). Then start up ypbind on the Linux machine and you should be OK.

If you want to migrate users from the Fedora system onto NIS you'll need to add the user/groups to the passwd and group files on the NIS server.

Also, I don 't like having NIS enabled on Web servers. The reason being is that anyone who exploits a hole in a Web application can easily get your passwd file and set to work cracking it (NIS should only be used on completely trusted machines). Granted that they can do the same by rooting a system on your network, but that's generally a lot harder than finding a hole in some Web applicationm (at least if you're up to date with patching and have sane security practices).


All times are GMT -5. The time now is 07:38 PM.