I'm having problems with ldap and 10.4 so I'm using NIS
UBUNTU (8.04) server
#NFS
echo "portmap mountd nfsd statd lockd rquotad : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
#LDAP
echo "ldap : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
#www
echo "www : ALL" | tee -a /etc/hosts.allow
NIS Deny
echo "nis : ALL" | tee -a /etc/hosts.deny
NIS
sudo apt-get install portmap nis
sed -i -e "s/^NISSERVER=false/NISSERVER=true/" /etc/default/nis
#sed -i -e "s/^NISCLIENT=true/NISCLIENT=false/" /etc/default/nis
echo "ypserv ypbind : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
# /etc/default/portmap
echo "ypserver 192.168.1.8" | tee -a /etc/yp.conf
sed -i -e "s/=1000/=1002/" /var/yp/Makefile # change MINUID & MINGID
sed -i -e "s/^0.0.0.0/255.255.255.0/" /etc/ypserv.securenets
sed -i -e "s/0.0.0.0$/192.168.1.0/" /etc/ypserv.securenets
# for OSX support sudo shadow2passwd.sh
sudo /usr/lib/yp/ypinit -m # XXXXXX.XXXXXXX.net
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nis restart
ypcat passwd
Tuesday, October 20, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment