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...")
 
Line 1: Line 1:


==NIS Client==
==NIS Client==
===Add packages===
<source>
# zypper in yast2-nis-client ypbind
# zypper in yast2-nis-client ypbind
</source>


/etc/sysconfig/network/config:
===/etc/sysconfig/network/config===
<source>
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"
</source>


<source>
# netconfig update -f
# netconfig update -f
</source>


Check:  
Check:  
<source>
# cat /etc/yp.conf
# cat /etc/yp.conf
...
...
ypserver hhloklnx02.srv.ndr-net.de
ypserver nis-server.domain.tld
</source>


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


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


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




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


# yast
===/etc/nsswitch.conf===
<source>
...
passwd: compat
group: compat
...
</source>
alternative for older installations:
<source>
...
passwd: files nis
group: files nis
...
</source>
 
===yast===
<source>
Network Services -> NIS Client  
Network Services -> NIS Client  
[Alt]+[u]  (Use NIS)
[Alt]+[u]  (Use NIS)
[F10] Finish
[F10] Finish
[F9] Quit
[F9] Quit
</source>


Check:
Check:
<source>
# ypcat passwd.byname
# ypcat passwd.byname
</source>

Revision as of 14:43, 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