SuSE NIS: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source" to "</syntaxhighlight") |
||
Line 7: | Line 7: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
# zypper in yast2-nis-client ypbind | # zypper in yast2-nis-client ypbind | ||
</ | </syntaxhighlight> | ||
===/etc/sysconfig/network/config=== | ===/etc/sysconfig/network/config=== | ||
Line 15: | Line 15: | ||
NETCONFIG_NIS_SETDOMAINNAME="yes" | NETCONFIG_NIS_SETDOMAINNAME="yes" | ||
NETCONFIG_NIS_POLICY="auto" | NETCONFIG_NIS_POLICY="auto" | ||
</ | </syntaxhighlight> | ||
<syntaxhighlight> | <syntaxhighlight> | ||
# netconfig update -f | # netconfig update -f | ||
</ | </syntaxhighlight> | ||
Check: | Check: | ||
Line 26: | Line 26: | ||
... | ... | ||
ypserver nis-server.domain.tld | ypserver nis-server.domain.tld | ||
</ | </syntaxhighlight> | ||
===Set NIS Domain=== | ===Set NIS Domain=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
# nisdomainname nis.domain.tld | # nisdomainname nis.domain.tld | ||
</ | </syntaxhighlight> | ||
Check: | Check: | ||
Line 38: | Line 38: | ||
nis.domain.tld | nis.domain.tld | ||
# | # | ||
</ | </syntaxhighlight> | ||
===Add to /etc/passwd=== | ===Add to /etc/passwd=== | ||
<syntaxhighlight> | <syntaxhighlight> | ||
+:::::: | +:::::: | ||
</ | </syntaxhighlight> | ||
Line 49: | Line 49: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
+::0:0:0:::: | +::0:0:0:::: | ||
</ | </syntaxhighlight> | ||
===/etc/nsswitch.conf=== | ===/etc/nsswitch.conf=== | ||
Line 57: | Line 57: | ||
group: compat | group: compat | ||
... | ... | ||
</ | </syntaxhighlight> | ||
alternative for older installations: | alternative for older installations: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 64: | Line 64: | ||
group: files nis | group: files nis | ||
... | ... | ||
</ | </syntaxhighlight> | ||
===yast=== | ===yast=== | ||
Line 72: | Line 72: | ||
[F10] Finish | [F10] Finish | ||
[F9] Quit | [F9] Quit | ||
</ | </syntaxhighlight> | ||
Check: | Check: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
# ypcat passwd.byname | # ypcat passwd.byname | ||
</ | </syntaxhighlight> |
Latest revision as of 04:25, 26 November 2021
!!!! First of all: You do NOT want NIS because of security reasons !!!!
NIS is not NIS+ and it is without encryption. So do not use it or if you really have to, use it wisely!
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