How To Install libnss-mysql on Fedora 36
Introduction
In this tutorial we learn how to install libnss-mysql
on Fedora 36.
What is libnss-mysql
Store your UNIX user accounts in MySQL. “libnss-mysql” enables the following * System-wide authentication and name service using a MySQL database. Applications do not need to be MySQL-aware or modified in any way. * Storing authentication information in a database instead of text files. * Creation of a single authentication database for multiple servers. This is often referred to as the “Single Sign-on” problem. * Writing data-modification routines (IE self-management web interface). libnss-mysql is similar to NIS or LDAP. It provides the same centralized authentication service through a database. What does this mean? Username, uid, gid, password, etc comes from a MySQL database instead of /etc/password, /etc/shadow, and /etc/group. A user configured in MySQL will look and behave just like a user configured in /etc/passwd. Your applications such as ls, finger, sendmail, qmail, exim, postfix, proftpd, X, sshd, etc. will all ‘see’ these users!
We can use yum
or dnf
to install libnss-mysql
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libnss-mysql.
Install libnss-mysql on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libnss-mysql
using dnf
by running the following command:
sudo dnf -y install libnss-mysql
Install libnss-mysql on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libnss-mysql
using yum
by running the following command:
sudo yum -y install libnss-mysql
How To Uninstall libnss-mysql on Fedora 36
To uninstall only the libnss-mysql
package we can use the following command:
sudo dnf remove libnss-mysql
libnss-mysql Package Contents on Fedora 36
/etc/libnss-mysql-root.cfg
/etc/libnss-mysql.cfg
/usr/lib/.build-id
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/0079aaf41e61fc071043046fb5188038b895b9
/usr/lib64/libnss_mysql.so.2
/usr/lib64/libnss_mysql.so.2.0.0
/usr/share/authselect/vendor/libnss-mysql
/usr/share/authselect/vendor/libnss-mysql/README
/usr/share/authselect/vendor/libnss-mysql/REQUIREMENTS
/usr/share/authselect/vendor/libnss-mysql/dconf-db
/usr/share/authselect/vendor/libnss-mysql/dconf-locks
/usr/share/authselect/vendor/libnss-mysql/fingerprint-auth
/usr/share/authselect/vendor/libnss-mysql/nsswitch.conf
/usr/share/authselect/vendor/libnss-mysql/password-auth
/usr/share/authselect/vendor/libnss-mysql/postlogin
/usr/share/authselect/vendor/libnss-mysql/smartcard-auth
/usr/share/authselect/vendor/libnss-mysql/system-auth
/usr/share/doc/libnss-mysql
/usr/share/doc/libnss-mysql/AUTHORS
/usr/share/doc/libnss-mysql/COPYING
/usr/share/doc/libnss-mysql/ChangeLog
/usr/share/doc/libnss-mysql/DEBUGGING
/usr/share/doc/libnss-mysql/FAQ
/usr/share/doc/libnss-mysql/NEWS
/usr/share/doc/libnss-mysql/README
/usr/share/doc/libnss-mysql/THANKS
/usr/share/doc/libnss-mysql/TODO
/usr/share/doc/libnss-mysql/UPGRADING
/usr/share/doc/libnss-mysql/sample
/usr/share/doc/libnss-mysql/sample/README
/usr/share/doc/libnss-mysql/sample/complex
/usr/share/doc/libnss-mysql/sample/complex/libnss-mysql-root.cfg
/usr/share/doc/libnss-mysql/sample/complex/libnss-mysql.cfg
/usr/share/doc/libnss-mysql/sample/complex/sample_database.sql
/usr/share/doc/libnss-mysql/sample/linux
/usr/share/doc/libnss-mysql/sample/linux/libnss-mysql-root.cfg
/usr/share/doc/libnss-mysql/sample/linux/libnss-mysql.cfg
/usr/share/doc/libnss-mysql/sample/linux/sample_database.sql
/usr/share/doc/libnss-mysql/sample/minimal
/usr/share/doc/libnss-mysql/sample/minimal/libnss-mysql-root.cfg
/usr/share/doc/libnss-mysql/sample/minimal/libnss-mysql.cfg
/usr/share/doc/libnss-mysql/sample/minimal/sample_database.sql
References
Summary
In this tutorial we learn how to install libnss-mysql
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
title: “How To Install libnss-mysql on Fedora 36” linkTitle: “libnss-mysql” type: “docs” description: “In this tutorial we learn how to install libnss-mysql in Fedora 36. libnss-mysql is NSS library for MySQL” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/libnss-mysql-featured.png
Introduction
In this tutorial we learn how to install libnss-mysql
on Fedora 36.
What is libnss-mysql
Store your UNIX user accounts in MySQL. “libnss-mysql” enables the following * System-wide authentication and name service using a MySQL database. Applications do not need to be MySQL-aware or modified in any way. * Storing authentication information in a database instead of text files. * Creation of a single authentication database for multiple servers. This is often referred to as the “Single Sign-on” problem. * Writing data-modification routines (IE self-management web interface). libnss-mysql is similar to NIS or LDAP. It provides the same centralized authentication service through a database. What does this mean? Username, uid, gid, password, etc comes from a MySQL database instead of /etc/password, /etc/shadow, and /etc/group. A user configured in MySQL will look and behave just like a user configured in /etc/passwd. Your applications such as ls, finger, sendmail, qmail, exim, postfix, proftpd, X, sshd, etc. will all ‘see’ these users!
We can use yum
or dnf
to install libnss-mysql
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libnss-mysql.
Install libnss-mysql on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libnss-mysql
using dnf
by running the following command:
sudo dnf -y install libnss-mysql
Install libnss-mysql on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libnss-mysql
using yum
by running the following command:
sudo yum -y install libnss-mysql
How To Uninstall libnss-mysql on Fedora 36
To uninstall only the libnss-mysql
package we can use the following command:
sudo dnf remove libnss-mysql
libnss-mysql Package Contents on Fedora 36
/etc/libnss-mysql-root.cfg
/etc/libnss-mysql.cfg
/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/7285caf8698af64aa04ff9b915f60703b9bfc2
/usr/lib/libnss_mysql.so.2
/usr/lib/libnss_mysql.so.2.0.0
/usr/share/authselect/vendor/libnss-mysql
/usr/share/authselect/vendor/libnss-mysql/README
/usr/share/authselect/vendor/libnss-mysql/REQUIREMENTS
/usr/share/authselect/vendor/libnss-mysql/dconf-db
/usr/share/authselect/vendor/libnss-mysql/dconf-locks
/usr/share/authselect/vendor/libnss-mysql/fingerprint-auth
/usr/share/authselect/vendor/libnss-mysql/nsswitch.conf
/usr/share/authselect/vendor/libnss-mysql/password-auth
/usr/share/authselect/vendor/libnss-mysql/postlogin
/usr/share/authselect/vendor/libnss-mysql/smartcard-auth
/usr/share/authselect/vendor/libnss-mysql/system-auth
/usr/share/doc/libnss-mysql
/usr/share/doc/libnss-mysql/AUTHORS
/usr/share/doc/libnss-mysql/COPYING
/usr/share/doc/libnss-mysql/ChangeLog
/usr/share/doc/libnss-mysql/DEBUGGING
/usr/share/doc/libnss-mysql/FAQ
/usr/share/doc/libnss-mysql/NEWS
/usr/share/doc/libnss-mysql/README
/usr/share/doc/libnss-mysql/THANKS
/usr/share/doc/libnss-mysql/TODO
/usr/share/doc/libnss-mysql/UPGRADING
/usr/share/doc/libnss-mysql/sample
/usr/share/doc/libnss-mysql/sample/README
/usr/share/doc/libnss-mysql/sample/complex
/usr/share/doc/libnss-mysql/sample/complex/libnss-mysql-root.cfg
/usr/share/doc/libnss-mysql/sample/complex/libnss-mysql.cfg
/usr/share/doc/libnss-mysql/sample/complex/sample_database.sql
/usr/share/doc/libnss-mysql/sample/linux
/usr/share/doc/libnss-mysql/sample/linux/libnss-mysql-root.cfg
/usr/share/doc/libnss-mysql/sample/linux/libnss-mysql.cfg
/usr/share/doc/libnss-mysql/sample/linux/sample_database.sql
/usr/share/doc/libnss-mysql/sample/minimal
/usr/share/doc/libnss-mysql/sample/minimal/libnss-mysql-root.cfg
/usr/share/doc/libnss-mysql/sample/minimal/libnss-mysql.cfg
/usr/share/doc/libnss-mysql/sample/minimal/sample_database.sql
References
Summary
In this tutorial we learn how to install libnss-mysql
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).