authorization
tools
getent
[!NOTE|label:references:]
getent passwd <USER>-> checking data in/var/lib/sss/mc/passwdgetent passwd | grep <USER>-> checking data in/var/lib/sss/pipes/nss
sss
[!NOTE|label:references]
references:
rhel
sss_override management
check user
add user name
override the uid
override the gid
override the home directory
override the shell attribute
remove account
or
tricky
sssd account cannot be deleted
solution
[!TIP|label:references:]
login to
rootto execute the following commands; or use any sudo local account, otherwise the sssd account will be unavailable when sssd service is stopped !
backup and restore
list all override
After this in
/etc/sssd/sssd.conffile Specifyldap_default_bind_dnandldap_default_authtokas default bind dn and password respectively, this depends upon your ldap setup.
references:
other sssd config
config files
/etc/krb5.keytab
host keytab file
/etc/nsswitch.conf
Name Service Switch (NSS) configuration file
/etc/sssd/sssd.conf
sssd configure file
/etc/auto.master
mount NFS
/etc/auto.misc
automount utility can mount and unmount NFS
/etc/pam.d/password-auth
PAM module
/etc/pam.d/system-auth
PAM module
/var/lib/sss/db/*
sssd cache
/etc/security/access.conf
local login access control table
join the system
troubleshooting
sudo: unable to dlopen /usr/lib/libsss_sudo.so[!NOTE|label:issue:]
local
user
subuid & subgid
subuid & subgid[!NOTE|label:references:]
check subuid and subgid from
/etc/subuidand/etc/subgid
find users
/etc/passwd
/etc/shadow
/etc/pam.d/passwdmore on users
local user management
useradd
create user
devops
or
full steps
deluser for ubunut
[!NOTE|label:references:]
deluser- remove a user from the system
userdel- delete a user account and group ( if possible )
deluser, delgroup - remove a user or group from the system
SYNOPSIS
deluser [options] [--force] [--remove-home] [--remove-all-files] [--backup] [--backup-to DIR] user
deluser --group [options] group
delgroup [options] [--only-if-empty] group
deluser [options] user group
[!TIP]
username:
test1password:
password1
group
/etc/group
/etc/passwd
/etc/shadow
references:
get group
get gid
create group
create group with random gid
get available gid
for error:
create group with particular gid
create group with existing gid
[!TIP]
troubleshooting
issue:
solution
create group with password
add system group
[!NOTE|label:
-ror--system]
modify group
[!NOTE|label:references:]
groupmod: group 'xxx' does not exist in /etc/group
manager group users
add user into group
remove user from group
tips
list account permission
check account locale
[!NOTE|label:references:]
logout
or
$1
MD5 hashing algorithm
$2
Blowfish Algorithm
$3
Eksblowfish Algorithm
$4
NT hashing algorithm
$5
SHA-256 Algorithm
$6
SHA-512 Algorithm
authentication in RHEL
[!NOTE|label:references:]
Last updated