Learn how to set up Multi-Factor Authentication (MFA) so Linux users can authenticate via multiple factors.
- Enable the MFA factors for your requirements. See Configure Multi-Factor Authentication Settings and Configure Authentication Factors
- Create a group for MFA, and add the POSIX Users to this group.
- Navigate to Groups > Add.
- Enter the Name of the group and click Next.
- Search for the POSIX users you want to enable for MFA.
- Select the users and click Finish.
- Create a Sign-On rule.
- Navigate to Security > Sign-On Policies and click Default Sign-On Policy.
- Click Sign-On Rules and then Add.
- Enter a Rule Name, and under Conditions in the field And is a member of these groups type and select the group that you created above. Under Actions make sure Access is set to Allowed and check the Prompt for an additional factor checkbox. Change the Enrollment to Optional and click Save.
Note:At present the only sign on policy that the Oracle Identity Cloud Service Linux Pluggable Authentication Module (PAM) supports, is the Default Sign-On Policy.
- Move the newly created sign-on rule to the top by clicking on the sign-on rule and dragging it to the top of the list. Click Save. This will ensure that this rule gets evaluated first so that users belonging to the chosen group are prompted for MFA when they sign in.
- Login to Oracle Identity Cloud
Service as a user in the MFA Group, for example via
- Enroll the user in MFA and select the factors to enroll in.
Note:Backup factors are not currently supported with the Oracle Identity Cloud Service Linux PAM .
- Once the user is enrolled in MFA, test authentication on Linux:
For example, for a user who has configured SMS as their second factor:
- SSH into your Linux environment where the Oracle Identity Cloud Service Linux PAM is installed.
- When prompted enter the password for the Oracle Identity Cloud Service user.
- Enter the second factor with which to authenticate.
# ssh userPosix@host.example.com password: Complete 2-Step Verification An SMS that contains a passcode was sent to +1XXXXXXX455. Enter the passcode or use the following option, and then press Enter: r - Resend passcode Enter the passcode or an option (r): Last login: Thu Mar 28 16:18:52 2019 from localhost [userPosix@host ~]$