[DEBUG] Linux resolve error ‘chmod: changing permissions of ‘resolv.conf’: Operation not permitted’

Error Reporting Command

# chmod 644 resolv.conf

Error Code

chmod: changing permissions of 'resolv.conf': Operation not permitted

Analysis

This file is locked by chattr command

Solution

Step One: Cancel the lock

# chattr -i /etc/resolv.conf

Step Two: Change the file’s privilege

# chmod 644 resolv.conf

Step Three: Relock this file

# chattr +i /etc/resolv.conf

[DEBUG] Linux resolve error code ‘DB version too old ……, expected …… for domain implicit_files!’

Error Code

# useradd <account name>
DB version too old ......, expected ...... for domain implicit_files!
......

Or:

# chage -l <user name>
DB version too old ......, expected ...... for domain implicit_files!
......

Solution

Step One: Create /etc/sssd/sssd.conf file

# vim /etc/sssd/sssd.conf

Add follow lines:

[sssd]
enable_files_domain = true

Step Two: Give /etc/sssd/sssd.conf file properly privilege

# chmod 600 /etc/sssd/sssd.conf

Step Three: Restart sssd service

# systemctl restart sssd

Reference

https://access.redhat.com/solutions/7031304