Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Chapter 9, Using Role-Based Access Control (Tasks), in System Administration Guide: Security Services.
Stop the NIS+ service.
# svcadm disable network/rpc/nisplus:default |
Open the /lib/svc/method/nisplus file.
Use your preferred text editor.
Edit the file to add the desired options.
Example –
Change:
/usr/sbin/rpc.nisd $nisd_flags || exit $? |
To:
/usr/sbin/rpc.nisd $nisd_flags -Y -B || exit $? |
In this example, the -Y and -B options are added to rpc.nisd, so the options are automatically implemented at startup.
Save and quit.
Start the NIS+ service.
# svcadm enable network/rpc/nisplus:default |