Author Topic: Users via NIS/YP?  (Read 1634 times)

Offline rbroberts

  • Member
  • **
  • Posts: 19
Users via NIS/YP?
« on: October 15, 2009, 06:51:16 PM »
Is it possible to integrate unRAID with NIS/YP?  All of my hosts are Fedora machines using NIS for user authentication.  Well, except for the laptops, but I've connived to share UIDs so that when they are on the network they can easily throw files back and forth.  Right now, my file server is running a LVM+RAID1 disk array on which the home directories live.  I'd like to move that over to unRAID, presumably as user shares with NFS support since they currently automount via NFS.  But I'd like to avoid having two sources of user authentication data.

So, is there a way to get the unRAID server to use NIS?

roland

Offline BRiT

  • Hero Member
  • *****
  • Posts: 2701
    • WTF.com
Re: Users via NIS/YP?
« Reply #1 on: October 15, 2009, 09:21:06 PM »
It may be faster/easier to setup a full Slackware distro using NIS/YP then install unRaid's md driver and emHttp controller.

Offline rbroberts

  • Member
  • **
  • Posts: 19
Re: Users via NIS/YP?
« Reply #2 on: October 16, 2009, 07:47:03 PM »
As a noob, that's a bit intimidating.  I found this page to guide me, http://lime-technology.com/wiki/index.php?title=Installing_unRAID_on_a_full_Slackware_distro, but I don't really want a full Slackware distribution (at least I don't think I do).  And then I have to come up with a more complicated backup strategy for my unRAID server itself.  Hmm, and I have to go install a DVD player in the host (I didn't bother since I don't need it with the flash drive), and go find another drive to use for the system disk.  I'm sort of thinking "out loud" here....  It's going to take me a while just to itemize what I have to figure out before I will be sure I not only have it working but have it working where I can recover from a failure of the system drive, too.
« Last Edit: October 16, 2009, 07:54:49 PM by rbroberts »

Offline rbroberts

  • Member
  • **
  • Posts: 19
Re: Users via NIS/YP?
« Reply #3 on: October 16, 2009, 07:58:12 PM »
And it looks like I'm going to have to search just to find Slackware 12.2 to download; they seem to be at 13.0 now  :-\

Online Joe L.

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 17804
Re: Users via NIS/YP?
« Reply #4 on: October 16, 2009, 08:19:27 PM »
And it looks like I'm going to have to search just to find Slackware 12.2 to download; they seem to be at 13.0 now  :-\
I might be wrong, but I think you can just download, install, and configure  yptools-2.9-i486-1.tgz

A link to download it is here: http://slackware.cs.utah.edu/pub/slackware/slackware-12.2/slackware/n/yptools-2.9-i486-1.tgz

The description is
PACKAGE DESCRIPTION:
yptools: yptools (NIS servers and clients)
yptools:
yptools: NIS stands for Network Information Service.  NIS is usually used to
yptools: provide /etc/passwd and /etc/group information throughout the network.
yptools: Most Sun-based networks run NIS, and Linux machines can take full
yptools: advantage of existing NIS service or provide NIS service themselves.
yptools:


To install it is as easy as
installpkg yptools-2.9-i486-1.tgz

Configuration is described here:
http://connie.slackware.com/~david/zuul/nis-mini-howto/Slackware-NIS-mini-HOWTO

Only complication is saving the configuration files to the flash drive and re-installing them to the normal locations before starting the NIS service when you reboot.

Offline WeeboTech

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6232
    • My GoogleCode unRAID Support Page
Re: Users via NIS/YP?
« Reply #5 on: October 17, 2009, 04:19:53 AM »
And it looks like I'm going to have to search just to find Slackware 12.2 to download; they seem to be at 13.0 now  :-\

Roland, it's not that involved for a few system resources.  Put the extra slackware packages in /boot/packages.
upon boot up restore any configuration files from your /boot/custom/etc directory (via the /boot/config/go script)
Install the packages upon boot with installpkg.

If you edit anything on the system's ram disk, make sure those configurations are backed up to /boot/custom/etc.

It's not the perfect solution but it works.

Other choices which are more involved. uncompress the ram disk image to a hard drive folder.
Do installpkg's of everything you want to install into the hard drive folder.
Repackage the hard drive folder back to a bzroot image and place on your flash drive.

I usually go way of the first method. Then any upgrades do not involve the work required in the second method.