Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Every user is displayed twice at the login screen

  1. #11

    Default Re: Every user is displayed twice at the login screen

    Regarding the original problem: I just had a quick look at SDDM's source code, and it just seems to read the entries from the /etc/passwd file via the standard system functions.
    So I don't really see how a duplication could happen there, unless they are already duplicated in /etc/passwd...

    Though according to the getpwent() man page, it may get users from NIS or LDAP as well.
    Unfortunately I have absolutely no experience with this, so I have no idea what could be wrong either.

  2. #12

    Default Re: Every user is displayed twice at the login screen

    I still have this problem; well, I know that it is not a real problem, but is annoying nonetheless...

    Is there some more info that I can provide to help solving this?

  3. #13

    Default Re: Every user is displayed twice at the login screen

    Quote Originally Posted by sekhemty View Post
    Is there some more info that I can provide to help solving this?
    Well, I still have no idea how this could happen, so I also don't know what further info may be helpful.

    Just for curiosity: do you see the users twice in YaST->User and Group Management too?

  4. #14

    Default Re: Every user is displayed twice at the login screen

    No, there is just a single entry there.

    It seems something related to SDDM only.

    And thank you again!

  5. #15

    Default Re: Every user is displayed twice at the login screen

    Quote Originally Posted by sekhemty View Post
    It seems something related to SDDM only.
    Does this command also list the users twice?
    Code:
    getent passwd | sort -n -t ":" -k 3|tail
    As I said, sddm just uses normal system functions to get the list of users. (it doesn't explicitly remove duplicates though according to the bug report I mentioned earlier)

    Other things I would try is switch to a different theme (though I don't think that will help) or displaymanager (e.g. kdm, lightdm).

  6. #16

    Default Re: Every user is displayed twice at the login screen

    Yes, that command lists every user twice.

  7. #17

    Default Re: Every user is displayed twice at the login screen

    I've also tried with kdm and lightdm, they both correctly display every user once; after reverting to sddm, twice again.

  8. #18

    Default Re: Every user is displayed twice at the login screen

    Quote Originally Posted by sekhemty View Post
    Yes, that command lists every user twice.
    This shows at least that the problem is indeed on a lower level.

    The only "bug" in sddm is that it doesn't filter out duplicates.

    Quote Originally Posted by sekhemty View Post
    I've also tried with kdm and lightdm, they both correctly display every user once; after reverting to sddm, twice again.
    Maybe they do remove the duplicates then.

    The question that still remains is *why* they are duplicated.
    According to "man getent":
    Code:
           The  getent  command displays entries from databases supported by the
           Name Service Switch libraries,  which  are  configured  in  /etc/nss-
           witch.conf.
    Can you post the file /etc/nsswitch.conf please?
    Last edited by wolfi323; 10-Feb-2017 at 06:21.

  9. #19

    Default Re: Every user is displayed twice at the login screen

    Here it is (I have omitted the comments)

    Code:
    
    passwd: compat [NOTFOUND=return] files
    group:  compat [NOTFOUND=return] files
    
    hosts:  files mdns_minimal [NOTFOUND=return] dns
    networks:       files dns
    
    services:       files
    protocols:      files
    rpc:    files
    ethers: files
    netmasks:       files
    netgroup:       files
    publickey:      files
    
    bootparams:     files
    automount:      files
    aliases:        files
    shadow: compat
    
    

  10. #20

    Default Re: Every user is displayed twice at the login screen

    I never even looked at that file before, but I suppose those lines are causing your problem then:
    Code:
    passwd: compat [NOTFOUND=return] files
    group:  compat [NOTFOUND=return] files
    

    On my 42.2 system, they look like this:
    Code:
    passwd: compat
    group:  compat
    Try to change them accordingly, i.e. remove the "files". I suspect that having "compat" and "files" as source would result in reading /etc/passwd twice or something like that.
    Strange though that what you have is actually the default in Tumbleweed. So if that's the problem, it should happen on every TW system. So there must be something else playing a role here too... :-/
    Last edited by wolfi323; 10-Feb-2017 at 11:23.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •