apt-get install nis |
pwunconv |
NISSERVER=master NISCLIENT=true YPPWDDIR=/etc YPCHANGEOK=chsh |
domain domain18 server node18 |
ALL = passwd group |
MINUID=5000 MINGID=5000 |
cd /var/yp; make |
/etc/init.d/portmap stop /etc/init.d/portmap start /etc/init.d/nis stop /etc/init.d/nis start |
cd /var/yp; make |
ps -ef | grep yp rpcinfo -p | grep yp |
NISSERVER=false NISCLIENT=true |
passwd: compat group: compat shadow: compat hosts: files dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis |
/etc/init.d/portmap stop /etc/init.d/portmap start /etc/init.d/nis stop /etc/init.d/nis start |
+:::::: |
+::: |
domainname ypwhich |
groupadd -g 5000 nisusers useradd -u 5000 -g 5000 -m -s /bin/bash jack useradd -u 5001 -g 5000 -m -s /bin/bash sam useradd -u 5002 -g 5000 -m -s /bin/bash mary useradd -u 5003 -g 5000 -m -s /bin/bash jenn useradd -u 5004 -g 5000 -m -s /bin/bash testu |
cd /var/yp; make |
ypcat passwd |
-sam:::::: +:::::: |
ssh sam@localhost |
+sam:::::: +:*:::::/etc/NoShell |
powerusers (,sam,) (,jenn,) (,jack,) |
ALL = passwd group netgrp |
cd /var/yp; make |
+@powerusers:::::: +:*:::::/etc/NoShell |
tail /var/log/auth.log |
#0.0.0.0 0.0.0.0 |
/etc/init.d/nis restart |
ypcat passwd |
255.255.255.255 192.168.5.18 |
ypcat telephones |