Service manual

38 Cyclades ACS 5000 Advanced Console Server Command Reference Guide
ypserver 192.168.160.110
3. Edit the /etc/nsswitch.conf file to include the NIS in the lookup order of the databases.
4. Configure the parameter <all/sxx>.authype as local.
To test the configuration:
1. Start with the following command.
# /usr/sbin/ypbind
2. Display the NIS server name by running the following command.
# /usr/bin/ypwhich
3. Display the all users entry by running the following command.
# /usr/bin/ypcat -t passwd.byname
4. Display the user's entry in the NIS passwd file.
# /usr/bin/ypmatch -t <userid/username> passwd.byname
If the preceding steps are performed successfully, change the /etc/inittab file by uncommenting the
line that performs a ypbind upon startup.
nsswitch.conf
To use NIS to authenticate users, change the lines in /etc/nsswitch.conf that reference passwd,
shadow and group.
The /etc/nsswitch.conf file has the following format.
<database> : <service> [<actions> <service>]
Table 3.5: nsswitch.conf Parameters
Parameter Description
<database> available: aliases, ethers, group, hosts, netgroup, network, passwd, protocols,
publickey, rpc, services and shadow.
<service> available: nis (use NIS version 2), dns (use Domain Name Service) and files (use the
local files).
<actions> Has this format: [<status> = <action>].
<status> = SUCCESS, NOTFOUND, UNAVAIL or TRYAGAIN.
<action> = return or continue.
SUCCESS No error occurred and the desired entry is returned. The default action for this status
is return.
NOTFOUND The lookup process works fine, but the needed value was not found. The default
action for this status is continue.