Menu

root@earth ~# groups -> shows only one group

Help
jonatan
2005-08-18
2013-04-17
  • jonatan

    jonatan - 2005-08-18

    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

     
    • Ben Goodwin

      Ben Goodwin - 2005-08-21

      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.

       
    • jonatan

      jonatan - 2005-09-09

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.