From Fedora Project Wiki
Description
This test is confirms that authconfig
can be used to configure a system for local identity and local authentication. Once setup, several commands are used to confirm the system setup.
How to test
- As a logged in desktop user, start the authentication configuration utility by running the command
system-config-authentication
, or by selecting the menu item System → Administration → Authentication - Select User Account Database as Local accounts only (see Image: Screenshot-Local Authentication.png). When finished, select Apply to save your changes.
- Confirm that the sssd service is not running by issuing the following command
- /sbin/service sssd status
- Next, add a new user account by selecting the menu item System → Administration → Users and Groups. Alternatively, you can create a new user and assign a password by running the commands
useradd
andpasswd
from a terminal application. When finished, logout of the desktop. - When the graphical login screen appears, login to the system as the newly created local user.
- Once logged into the desktop, change the password for current user. This can be accomplished by starting System → Preferences → About me, then selecting Change Password. Or you can run the command
passwd
from a terminal application. After changing the password, logout of the desktop. - Let's confirm the password change by logging into the desktop using the same local user account, but with the new password.
- Finally, open a terminal application, and check whether you can query for information about other local users. For example, you might run a commands similar to:
- getent passwd localtest
- getent group localtest
- finger localtest
Expected Results
- The Authentication Configuration application starts without error
- The Authentication Configuration application completes without error
- The sssd service is not running. Expected output from the command
service
is included below.- /sbin/service sssd status
- sssd is stopped
- Whether using a graphical utility, or the commands
useradd
andpasswd
, creating a local user completes without error - Login to the graphical desktop is successful using the newly created local username and password
- Whether using a graphical utility, or the command
passwd
, the password is successfully changed - The new password is accepted when logging into the desktop
- The commands
getent
andfinger
return information about local users and groups.- Sample
getent passwd
output is included below.- getent passwd localtest
- localtest:x:500:500::/home/localtest:/bin/bash
- Sample
getent group
output is included below.- getent group localtest
- localtest:x:500:
- Sample
finger
output is included below.- finger localtest
- Login: localtest Name:
- Directory: /home/localtest Shell: /bin/bash
- On since Mon Mar 29 15:57 (IST) on pts/2 from localhost
- Sample