SuSE NIS: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
Line 1: | Line 1: | ||
[[Category:SuSE]] | |||
==NIS Client== | ==NIS Client== | ||
===Add packages=== | ===Add packages=== |
Revision as of 14:44, 26 January 2021
NIS Client
Add packages
# zypper in yast2-nis-client ypbind
/etc/sysconfig/network/config
NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime"
NETCONFIG_NIS_STATIC_SERVERS="nis-server.domain.tld"
NETCONFIG_NIS_SETDOMAINNAME="yes"
NETCONFIG_NIS_POLICY="auto"
# netconfig update -f
Check:
# cat /etc/yp.conf
...
ypserver nis-server.domain.tld
Set NIS Domain
# nisdomainname nis.domain.tld
Check:
# nisdomainname
nis.domain.tld
#
Add to /etc/passwd
+::::::
Add to /etc/shadow
+::0:0:0::::
/etc/nsswitch.conf
...
passwd: compat
group: compat
...
alternative for older installations:
...
passwd: files nis
group: files nis
...
yast
Network Services -> NIS Client
[Alt]+[u] (Use NIS)
[F10] Finish
[F9] Quit
Check:
# ypcat passwd.byname