Samba: list all accounts

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

Samba: list all accounts

Post by peter_b »

HowTo list all Samba accounts and their details

A great feature of having a GNU/Linux box as storage shared using Samba is, that not every system account is automatically "available" as Samba login.
Of course, this is also another point of confusion and failure.

Therefore, here's some information about how to list information of all accounts currently "known" by Samba:

Code: Select all

$ pdbedit -L -v
Depending on your number of smb-users, this can be a lengthy list :wink:
The data spit out per account looks like this:

Code: Select all

Unix username:        inbox_auto
NT username:
Account Flags:        [U          ]
User SID:             S-1-5-21-2112280047-657456516-xxxxxxxxxx-xxx
Primary Group SID:    S-1-5-21-2112280047-657456516-xxxxxxxxxx-xxx
Full Name:            Write access to automated Inbox folders
Home Directory:       \\vm-gluster-1.bbX\inbox_auto
HomeDir Drive:
Logon Script:
Profile Path:         \\vm-gluster-1.bbX\inbox_auto\profile
Domain:               VM-GLUSTER-1.BBX
Account desc:
Workstations:
Munged dial:
Logon time:           0
Logoff time:          Wed, 06 Feb 2036 16:06:39 CET
Kickoff time:         Wed, 06 Feb 2036 16:06:39 CET
Password last set:    Mon, 15 Dec 2014 16:05:43 CET
Password can change:  Mon, 15 Dec 2014 16:05:43 CET
Password must change: never
Last bad password   : 0
Bad password count  : 0
Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Post Reply