Re: Diskless linux with NIS On 31 Jan 2007 15:50:49 -0800, jason_b
<Jason.Barles@dsto.defence.gov.au> wrote:
>
>
> I am having trouble setting up a diskless linux vlan network that
> utilises NIS for password authentication.
>
> When installing linux on a machine, I tried installing it using a
> kickstart file that included a line like:
>
> authconfig --enableshadow --enablemd5 --enablenis --
> nisdomain=<domainname> --nisserver=<servername>
>
> As a non-diskless machine NIS appeared to work. After rsync'ing the /
> directory over to the server under /diskless/root, NIS did not work
> anymore.
>
> I have found however that running the command:
>
> authconfig --enableshadow --enablemd5 --enablenis --
> nisdomain=<domainname> --nisserver=<servername> --update
>
> Is capable of having NIS working, but this is not permanent. After
> reboot NIS does not work again.
>
Then put that command in a script that runs at reboot. In most Linux
distros you can use /etc/rc.local. In most Debian-based distros you
put a script in /etc/init.d and make links in /etc/rc*.d/. Ubuntu Edgy
has a new startup system that I don't know.
--
Change is the essential process of all existence.
-- Spock, "Let That Be Your Last Battlefield", stardate 5730.2 |