{"id":1519,"date":"2017-03-20T16:44:04","date_gmt":"2017-03-20T23:44:04","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1519"},"modified":"2017-03-20T16:44:04","modified_gmt":"2017-03-20T23:44:04","slug":"samba-smbpasswd","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1519","title":{"rendered":"Samba &#8211; smbpasswd"},"content":{"rendered":"<p>CentOS: 7.x<br \/>\nSamba: 4.4.4<\/p>\n<p>Just a quick note.  If you want to list the users in your smbpasswd file, you can use the pdbedit command.<\/p>\n<blockquote><p># pdbedit -L<br \/>\nNo builtin backend found, trying to load plugin<br \/>\nModule &#8216;tdbsam&#8217; loaded<br \/>\nusername:1002:<\/p><\/blockquote>\n<p>Or, for more detailed output:<\/p>\n<blockquote><p># pdbedit -L -v<br \/>\nNo builtin backend found, trying to load plugin<br \/>\nModule &#8216;tdbsam&#8217; loaded<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nUnix username:        username1<br \/>\nNT username:<br \/>\nAccount Flags:        [U          ]<br \/>\nUser SID:             S-1-5-21-856554280-4097225363-552893113-1000<br \/>\nForcing Primary Group to &#8216;Domain Users&#8217; for username1<br \/>\nPrimary Group SID:    S-1-5-21-856554280-4097225363-552893113-513<br \/>\nFull Name:<br \/>\nHome Directory:       \\\\server\\username1<br \/>\nHomeDir Drive:<br \/>\nLogon Script:<br \/>\nProfile Path:         \\\\server\\username1\\profile<br \/>\nDomain:               SERVER<br \/>\nAccount desc:<br \/>\nWorkstations:<br \/>\nMunged dial:<br \/>\nLogon time:           0<br \/>\nLogoff time:          Wed, 06 Feb 2036 07:06:39 PST<br \/>\nKickoff time:         Wed, 06 Feb 2036 07:06:39 PST<br \/>\nPassword last set:    Thu, 19 Jan 2017 15:10:20 PST<br \/>\nPassword can change:  Thu, 19 Jan 2017 15:10:20 PST<br \/>\nPassword must change: never<br \/>\nLast bad password   : 0<br \/>\nBad password count  : 0<br \/>\nLogon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nUnix username:        username2<br \/>\nNT username:<br \/>\nAccount Flags:        [U          ]<br \/>\nUser SID:             S-1-5-21-856554280-4097225363-552893113-1001<br \/>\nForcing Primary Group to &#8216;Domain Users&#8217; for username2<br \/>\nPrimary Group SID:    S-1-5-21-856554280-4097225363-552893113-513<br \/>\nFull Name:<br \/>\nHome Directory:       \\\\server\\username2<br \/>\nHomeDir Drive:<br \/>\nLogon Script:<br \/>\nProfile Path:         \\\\server\\username2\\profile<br \/>\nDomain:               SERVER<br \/>\nAccount desc:<br \/>\nWorkstations:<br \/>\nMunged dial:<br \/>\nLogon time:           0<br \/>\nLogoff time:          Wed, 06 Feb 2036 07:06:39 PST<br \/>\nKickoff time:         Wed, 06 Feb 2036 07:06:39 PST<br \/>\nPassword last set:    Mon, 20 Mar 2017 16:08:57 PDT<br \/>\nPassword can change:  Mon, 20 Mar 2017 16:08:57 PDT<br \/>\nPassword must change: never<br \/>\nLast bad password   : 0<br \/>\nBad password count  : 0<br \/>\nLogon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF<\/p><\/blockquote>\n<p>You can add users to the smbpasswd file as follows:<\/p>\n<blockquote><p># smbpasswd -a username3<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>CentOS: 7.x Samba: 4.4.4 Just a quick note. If you want to list the users in your smbpasswd file, you can use the pdbedit command. # pdbedit -L No builtin backend found, trying to load plugin Module &#8216;tdbsam&#8217; loaded username:1002: Or, for more detailed output: # pdbedit -L -v No builtin backend found, trying to [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[249,61],"class_list":["post-1519","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-password","tag-samba"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1519"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1519\/revisions"}],"predecessor-version":[{"id":1520,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1519\/revisions\/1520"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}