i've just installed libnss_mysql and it works fine.. but every user has only his primary group.. no group additionaly assigned via the usergroup-table is shown by the groups-command.. whats wrong? there are no error-messages or s.th unnormal in the debug-log.
thx
jonatan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OS and version?
Can you show us the mysql data for an example user?
/etc/nsswitch.conf contents?
I might need the strace output (see the DEBUGGING file) but let's see what the above data looks like first.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i got a lil bit into it.
the above problem is solved. i dunno why, but its okay now.
there is further more a strange thing:
i've configured nss like in the sample files, with some little modifications, due i think its better to take the uid and gid for references instead of the username.
strange is: if a call 'groups cinergi' as root, i get all the groups that user belongs to. if i call the same as user cinergi, i get all the groups, too. but if i call 'groups' as user cinergi WITHOUT giving a username, i get ONLY the main-group. thats the same with all other users i created, too. i'm wondering, cause i thought calling 'groups' without any argument is the same as calling it with the current user as argument.
do anybody knows something about that?
thx
jonatan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
i've just installed libnss_mysql and it works fine.. but every user has only his primary group.. no group additionaly assigned via the usergroup-table is shown by the groups-command.. whats wrong? there are no error-messages or s.th unnormal in the debug-log.
thx
jonatan
OS and version?
Can you show us the mysql data for an example user?
/etc/nsswitch.conf contents?
I might need the strace output (see the DEBUGGING file) but let's see what the above data looks like first.
hy,
i got a lil bit into it.
the above problem is solved. i dunno why, but its okay now.
there is further more a strange thing:
i've configured nss like in the sample files, with some little modifications, due i think its better to take the uid and gid for references instead of the username.
strange is: if a call 'groups cinergi' as root, i get all the groups that user belongs to. if i call the same as user cinergi, i get all the groups, too. but if i call 'groups' as user cinergi WITHOUT giving a username, i get ONLY the main-group. thats the same with all other users i created, too. i'm wondering, cause i thought calling 'groups' without any argument is the same as calling it with the current user as argument.
do anybody knows something about that?
thx
jonatan