Temporarily disable user logins during system shutdown or routine maintenance.
Superuser
Users who are assigned the root role
Users who are assigned the solaris.system.maintenance authorization
For more information, see the nologin(4) man page.
Before You Begin
You must become an administrator who is assigned the solaris.admin.edit/etc/nologin authorization. By default, the root role has this authorization. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
# pfedit /etc/nologin
For an example of using the solaris.admin.edit/etc/nologin authorization, see Example 5, Disabling User Logins.
In this example, a user is authorized to write the notification of system unavailability.
$ pfedit /etc/nologin ***No logins permitted.*** ***The system will be unavailable until 12 noon.***