Bug 8898 - pdbedit -L does not disambiguate usernames with the same UID
pdbedit -L does not disambiguate usernames with the same UID
Status: RESOLVED INVALID
Product: Samba 3.6
Classification: Unclassified
Component: User & Group Accounts
3.6.4
All All
: P5 normal
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-26 01:26 UTC by Joseph Tam
Modified: 2015-05-02 16:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Tam 2012-04-26 01:26:13 UTC
If you have two accounts with the same UID in your password backend, for example

    dup1:12345:...
    dup2:12345:...
    dup3:12345:...

pdbedit -L will report all the accounts, but with the same username.

    dup1:10167:Test User 1
    dup1:10167:Test User 1
    dup1:10167:Test User 1

I do not know if the duplicated name depends on the order of samba's backend or the UID->user resolution performed by the server host.  Different usernames mapped to the same UID are useful when sharing files amonmg different users without having to share passwords.
Comment 1 Björn Jacke 2015-05-02 16:50:44 UTC
> Different usernames mapped to the same UID are useful

no. A setup with different usernames but same UID are broken. Don't do that.