####Create, delete and modify local user accounts
useradd <username>
- create a new useruseradd -G <group> <username>
- add existing user to new groupusermod -aG <supgroup> <username>
- add user to supplementary groupuserdel -r <username>
- remove the user completely from the system
####Change passwords and adjust password aging for local user accounts
chage -M <max_days> <username>
- set the maximum password agechage -I <username>
- set the account / user to inactivechage -d 0 <username>
- force user to change password at next logindate -d "+180 days"
- determine the date 180+ days from todayvi /etc/login.defs
- update password policy configuration file
####Create, delete and modify local groups and group memberships
groupadd -r <groupname>
- create a new system groupgroupmod -n <newname> <groupname>
- rename existing groupgroupmod -g <groupid> <groupname>
- assign a GID to groupgroupdel <groupname>
- delete existing group
####Configure a system to use an existing auth service for user/group info
- using LDAP server:
server.example.com
#####LDAP Client Configuration
yum install -y openldap-clients nss-pam-ldapd
- install LDAP toolsauthconfig-tui
- Text user interface wizard to setup LDAP- Cache Information
- Use LDAP
- Use MD5
- Use Shadow
- Use LDAP Auth
- Local Auth
- In LDAP Settings:
- Use TLS:
ldap://server.example.com
,dc=example,dc=com
- Use TLS:
/etc/openldap/cacerts
- location of LDAP server certyum install -y autofs nfs-utils
- ensure NFS/AUTOFS tools are installedvi /etc/auto.master.d/home.autofs
- create the master entry/home /etc/auto.home
- add the primary mountpoint, point to config
vi /etc/auto.home
- create home automount*-rw,sync --fstype=nfs4 instructor.example.com:/home/guests/&
- add this line to/etc/auto.demo
systemctl start autofs.service
- start up autofssystemctl enable autofs.service
- enable itsu - <ldapuser>
- test the configuration
#####Kerberos Configuration
yum install authconfig-gtk krb5-workstation
- install Kerberos toolssystem-config-authentication
- run the CLI tool to connect to IPA- ensure Kerberos is checked, and DNS is unchecked
- verify with
getent
andssh
(TODO: figure more out about this)
- verify with
- ensure Kerberos is checked, and DNS is unchecked
yum install ipa-client
- ensure IPA tools are installedipa-client-install --domain=server.example.com --no-ntp --mkhomdir
- connect to test IPA- Enter AD credentials provided for adding Linux computers