authorization

tools

getent

[!NOTE|label:references:]

  • getent passwd <USER> -> checking data in /var/lib/sss/mc/passwd

  • getent passwd | grep <USER> -> checking data in /var/lib/sss/pipes/nss

sss

[!NOTE|label:references]

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 root to 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.conf file Specify ldap_default_bind_dn and ldap_default_authtok as default bind dn and password respectively, this depends upon your ldap setup.

other sssd config

  • config files

file
comments

/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

troubleshooting

  • sudo: unable to dlopen /usr/lib/libsss_sudo.so

    [!NOTE|label:issue:]

local

user

subuid & subgid

[!NOTE|label:references:]

  • check subuid and subgid from /etc/subuid and /etc/subgid

find 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

new user with root uid

[!TIP]

  • username: test1

  • password: password1

group

  • /etc/group list group in linux

  • /etc/passwd list user in linux

  • /etc/shadow list user in /etc/shadow

get group

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:-r or --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

Code
Algorithm

$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

Was this helpful?