Nous allons installer et configurer le serveur NIS qui contiendra les comptes utilisateurs.
aptitude install nis
infini.mdl
failed (backgrounded).
NISSERVER=false
NISSERVER=master
# echo "127.0.0.1" >> /etc/yp.conf
/etc/init.d/nis stop
/etc/init.d/nis start
cd /var/yp
MINUID=1000 MINGID=1000
MINUID=2000 MINGID=2000
LL = passwd group hosts rpc services netid protocols netgrp #ALL += publickey mail ethers bootparams printcap
ALL = passwd group hosts rpc services netid protocols netgrp ALL += auto.master auto.home
# touch /etc/auto.master # touch /etc/auto.home
# /usr/lib/yp/ypinit -m
# mkdir /home/nis
# /etc/init.d/nis stop
# /etc/init.d/nis start
# addgroup admin -gid 2000
# useradd --uid 2000 --home /home/nis/mdluser1 -g admin mdluser1
# cd /var/yp # make
127.0.0.1 localhost 192.168.10.121 entreprise-1 192.168.10.122 entreprise-2 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
aptitude install nis
mdl29.net
echo "+::::::" >>/etc/passwd echo "+::::::::" >>/etc/shadow echo "+:::" >>/etc/group
%admin ALL=(ALL) ALL
# useradd --uid xxxx --home /home/nis/USER -g admin USER