SuSE NIS: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Created page with " ==NIS Client== # zypper in yast2-nis-client ypbind /etc/sysconfig/network/config: NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime" NETCONFIG_NIS_S...")
 
m (Text replacement - "</source" to "</syntaxhighlight")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:SuSE]]
=!!!! 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==
==NIS Client==
===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="hhloklnx02.srv.ndr-net.de"
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 hhloklnx02.srv.ndr-net.de
ypserver nis-server.domain.tld
</syntaxhighlight>


Setzen der NIS Domain:
===Set NIS Domain===
# nisdomainname nis.ndr-net.de
<syntaxhighlight>
# nisdomainname nis.domain.tld
</syntaxhighlight>


Check:
Check:
<syntaxhighlight>
# nisdomainname
# nisdomainname
nis.ndr-net.de
nis.domain.tld
#
#
</syntaxhighlight>


/etc/passwd hinzufügen:
===Add to /etc/passwd===
<syntaxhighlight>
+::::::
+::::::
</syntaxhighlight>




/etc/shadow hinzufügen:
===Add to /etc/shadow===
<syntaxhighlight>
+::0:0:0::::
+::0:0:0::::
</syntaxhighlight>


# yast
===/etc/nsswitch.conf===
<syntaxhighlight>
...
passwd: compat
group: compat
...
</syntaxhighlight>
alternative for older installations:
<syntaxhighlight>
...
passwd: files nis
group: files nis
...
</syntaxhighlight>
 
===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