SuSE NIS

From Lolly's Wiki
Revision as of 17:03, 25 November 2021 by Lollypop (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")
Jump to navigationJump to search

!!!! 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

<syntaxhighlight>

  1. zypper in yast2-nis-client ypbind

</source>

/etc/sysconfig/network/config

<syntaxhighlight> 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" </source>

<syntaxhighlight>

  1. netconfig update -f

</source>

Check: <syntaxhighlight>

  1. cat /etc/yp.conf

... ypserver nis-server.domain.tld </source>

Set NIS Domain

<syntaxhighlight>

  1. nisdomainname nis.domain.tld

</source>

Check: <syntaxhighlight>

  1. nisdomainname

nis.domain.tld

</source>

Add to /etc/passwd

<syntaxhighlight> +:::::: </source>


Add to /etc/shadow

<syntaxhighlight> +::0:0:0:::: </source>

/etc/nsswitch.conf

<syntaxhighlight> ... passwd: compat group: compat ... </source> alternative for older installations: <syntaxhighlight> ... passwd: files nis group: files nis ... </source>

yast

<syntaxhighlight> Network Services -> NIS Client [Alt]+[u] (Use NIS) [F10] Finish [F9] Quit </source>

Check: <syntaxhighlight>

  1. ypcat passwd.byname

</source>