SuSE NIS: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
m (Text replacement - "</source" to "</syntaxhighlight") |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
==NIS Client== | ==NIS Client== | ||
===Add packages=== | ===Add packages=== | ||
< | <syntaxhighlight> | ||
# zypper in yast2-nis-client ypbind | # zypper in yast2-nis-client ypbind | ||
</ | </syntaxhighlight> | ||
===/etc/sysconfig/network/config=== | ===/etc/sysconfig/network/config=== | ||
< | <syntaxhighlight> | ||
NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime" | NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime" | ||
NETCONFIG_NIS_STATIC_SERVERS="nis-server.domain.tld" | NETCONFIG_NIS_STATIC_SERVERS="nis-server.domain.tld" | ||
NETCONFIG_NIS_SETDOMAINNAME="yes" | NETCONFIG_NIS_SETDOMAINNAME="yes" | ||
NETCONFIG_NIS_POLICY="auto" | NETCONFIG_NIS_POLICY="auto" | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight> | ||
# netconfig update -f | # netconfig update -f | ||
</ | </syntaxhighlight> | ||
Check: | Check: | ||
< | <syntaxhighlight> | ||
# cat /etc/yp.conf | # cat /etc/yp.conf | ||
... | ... | ||
ypserver nis-server.domain.tld | ypserver nis-server.domain.tld | ||
</ | </syntaxhighlight> | ||
===Set NIS Domain=== | ===Set NIS Domain=== | ||
< | <syntaxhighlight> | ||
# nisdomainname nis.domain.tld | # nisdomainname nis.domain.tld | ||
</ | </syntaxhighlight> | ||
Check: | Check: | ||
< | <syntaxhighlight> | ||
# nisdomainname | # nisdomainname | ||
nis.domain.tld | nis.domain.tld | ||
# | # | ||
</ | </syntaxhighlight> | ||
===Add to /etc/passwd=== | ===Add to /etc/passwd=== | ||
< | <syntaxhighlight> | ||
+:::::: | +:::::: | ||
</ | </syntaxhighlight> | ||
===Add to /etc/shadow=== | ===Add to /etc/shadow=== | ||
< | <syntaxhighlight> | ||
+::0:0:0:::: | +::0:0:0:::: | ||
</ | </syntaxhighlight> | ||
===/etc/nsswitch.conf=== | ===/etc/nsswitch.conf=== | ||
< | <syntaxhighlight> | ||
... | ... | ||
passwd: compat | passwd: compat | ||
group: compat | group: compat | ||
... | ... | ||
</ | </syntaxhighlight> | ||
alternative for older installations: | alternative for older installations: | ||
< | <syntaxhighlight> | ||
... | ... | ||
passwd: files nis | passwd: files nis | ||
group: files nis | group: files nis | ||
... | ... | ||
</ | </syntaxhighlight> | ||
===yast=== | ===yast=== | ||
< | <syntaxhighlight> | ||
Network Services -> NIS Client | Network Services -> NIS Client | ||
[Alt]+[u] (Use NIS) | [Alt]+[u] (Use NIS) | ||
[F10] Finish | [F10] Finish | ||
[F9] Quit | [F9] Quit | ||
</ | </syntaxhighlight> | ||
Check: | Check: | ||
< | <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