Temporarily disable user logins during system shutdown or routine maintenance.
Users who are assigned the root role
Users who are assigned the solaris.system.maintenance authorization
For more information, see the nologin(5) 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.4.
# pfedit /etc/nologin
For an example of using the solaris.admin.edit/etc/nologin authorization, see Example 8, 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.***