I've decided to write a small cheatsheet for user- and group-.management in FreeIPA.
User-management
Add user:
Change user's password:
Group-Management
Add user to group:
User-management
Add user:
Modify user:
ipa user-add $username --first=user --last=name --shell=/bin/bash --homedir=/home/username --email=username@archyslife.lan --password
[archy@ipa01 ~]$
The options for user-mod and user-add are exactly the same.
ipa user-mod $username --help
[archy@ipa01 ~]$
Change user's password:
Delete user:
ipa user-mod $username --password
[archy@ipa01 ~]$
Add user to group:
ipa user-del $username
[archy@ipa01 ~]$
Remove user from group:
ipa group-add-member group --users=$username
[archy@ipa01 ~]$
List users:
ipa group-remove-member group --users=$username
[archy@ipa01 ~]$
Show information to a specific user:
ipa user-find
[archy@ipa01 ~]$
Disable a user-account:
ipa user-show $username
[archy@ipa01 ~]$
Enable a user-account:
ipa user-disable $username
[archy@ipa01 ~]$
Modify an existing user-account, for a full list of arguments, try --help:
ipa user-enable $username
[archy@ipa01 ~]$
ipa user-mod $username --args
[archy@ipa01 ~]$
Group-Management
Add user to group:
Remove user from group:
ipa group-add-member $groupname --users=$username
[archy@ipa01 ~]$
Add group:
ipa group-remove-member $groupname --users=$username
[archy@ipa01 ~]$
Delete group
ipa group-add $groupname
[archy@ipa01 ~]$
List all groups
ipa group-del $groupname:
[archy@ipa01 ~]$
Show specifig informations for one group
ipa group-find
[archy@ipa01 ~]$
ipa group-show $groupname
[archy@ipa01 ~]$
Comments
Post a Comment