If a user’s email address is incorrect, then to change it you have 2 choices:
- Login to the FreeIPA Web Interface and change it
- Change it from the command line
I have tried using the web interface before, and encountered issues whereby it didn’t save correctly - so I’m writing this post to document how it’s done via the commandline.
Step 1
Login to fs-ipa (check the Server Infrastructure post for details) via SSH.
Step 2
Enter a root shell:
sudo bash
Enter your password when prompted.
Step 3
Find the user’s account. Do this like so:
ipa user-find USERNAME_HERE
Replace USERNAME_HERE
with the user’s username (i.e. the one used to login to the desktop machines etc).
Step 4
Set the user’s email address. This will replace any and all email addresses registered in the user’s account.
ipa user-mod USERNAME_HERE --email=USER@EXAMPLE.COM
Replace USERNAME_HERE
with the user’s username as before, and USER@EXAMPLE.COM
with the new email address.
Step 5
Verify that the change has gone through correctly. Do this like so:
ipa user-find USERNAME_HERE
Replace USERNAME_HERE
with the user’s username as before. The user’s new email address should be displayed somewhere in the resulting output.