libnss-mysql扩展用户,希望有作过的朋友介绍下.
libnss-mysql扩展用户
请大家帮我解释下
libnss-mysql.cfg
- getpwnam SELECT username,'*',uid,gid,pwchange,class,gecos,homedir,shell, \
- expire \
- FROM users \
- WHERE username='%1$s' \
- LIMIT 1
- getpwuid SELECT username,'*',uid,gid,pwchange,class,gecos,homedir,shell, \
- expire \
- FROM users \
- WHERE uid='%1$u' \
- LIMIT 1
- getpwent SELECT username,'*',uid,gid,pwchange,class,gecos,homedir,shell, \
- expire \
- FROM users
- getgrnam SELECT name,password,gid \
- FROM groups \
- WHERE name='%1$s' \
- LIMIT 1
- getgrgid SELECT name,password,gid \
- FROM groups \
- WHERE gid='%1$u' \
- LIMIT 1
- getgrent SELECT name,password,gid \
- FROM groups
- memsbygid SELECT username \
- FROM grouplist \
- WHERE gid='%1$u'
- gidsbymem SELECT gid \
- FROM grouplist \
- WHERE username='%1$s'
- host localhost
- database auth
- username nss-user
- password userpass
- #socket /var/lib/mysql/mysql.sock
- #port 3306
复制代码
libnss-mysql-root.cfg
- username nss-root
- password rootpass
复制代码
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论