summaryrefslogtreecommitdiff
path: root/system/nss-mysql/README.SLACKWARE
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 01:00:59 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 01:00:59 +0200
commitf5806afd94f14e537102127aeafd6803a8df581e (patch)
treeaf07523e87efecc71e7cf4bf93177f8dc64500e8 /system/nss-mysql/README.SLACKWARE
parent06e454263971e01ebcc743291c31a90f0092eb0f (diff)
downloadslackbuilds-f5806afd94f14e537102127aeafd6803a8df581e.tar.gz
system/nss-mysql: Added to 13.0 repository
Diffstat (limited to 'system/nss-mysql/README.SLACKWARE')
-rw-r--r--system/nss-mysql/README.SLACKWARE30
1 files changed, 30 insertions, 0 deletions
diff --git a/system/nss-mysql/README.SLACKWARE b/system/nss-mysql/README.SLACKWARE
new file mode 100644
index 0000000000..b3155043e9
--- /dev/null
+++ b/system/nss-mysql/README.SLACKWARE
@@ -0,0 +1,30 @@
+On to the good stuff :-)
+
+To get this working (locally) login to the database server, presuming that
+it is running; otherwise read /etc/rc.d/rc.mysqld first; to make the DB:
+
+# mysql -uroot -p
+> CREATE DATABASE nss_mysql;
+
+After this is done it has to be populated with the user tables; there is
+an example for them provided in /usr/doc/nss-mysql-1.0/sample.sql
+
+You can copy that to say /tmp, (probably) edit it some, and insert it with:
+
+# mysql -uroot -p -D nss_mysql < /tmp/sample.sql
+
+After this is done create the 'nss' and 'nss-shadow' database users with
+statements such as the ones found in /usr/doc/nss-mysql-1.0/SHADOW
+And make sure the passwords for them in /etc/nss-{mysql,mysql-root}.conf
+match up...
+
+Now edit your /etc/nsswitch.conf to look like the -mysql version and try
+the following commands:
+
+getent passwd
+getent shadow
+
+Which should list the users pulled from mysql!
+(Otherwise have a look at 'tail /var/log/syslog' for hints on how to fix it).
+
+-Menno.