I have a real big problem
I have converted my system to use pam_mysql as its authentifacation, I have a table called auth and another called shadow, the auth table is for passwd and the shadow for shadow
pam_sql works fine when loggin users in, as in they are authenticated, however, only the root account can resolve uid to names.
so when I 'ls' as root the files owned by users in the mysql database have there names
when a user from the mysql database logs in the prompt says I have no name and the 'ls' on files show uid's instead of names.
/usr/bin/id will work fine when logged in as root
root@Genesis-2:/etc# id stuart
uid=5032(stuart) gid=5000(students) groups=5000(students)
root@Genesis-2:/etc# su stuart
I have no name!@Genesis-2:/etc$ id stuart
id: stuart: No such user
it seems only root can access the database???
Many thanks for any help