Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:samba [2012-01-02 08:49] becki created |
becki:linux:samba [2018-01-15 09:55] (aktuell) becki |
||
---|---|---|---|
Zeile 66: | Zeile 66: | ||
create mask = 0644 | create mask = 0644 | ||
</code> | </code> | ||
+ | |||
+ | ===== List Users in Smb Database == | ||
+ | |||
+ | pdbedit -L [-v] | ||
+ | |||
+ | ===== Import User Accounts from other Smb Server == | ||
+ | |||
+ | <del>Just copy ''/etc/samba/private/passdb.tdb'' form old server to new server.</del> This doesn't work any more. They user account/password file is now at ''/var/lib/samba/private'' | ||
+ | |||
+ | Because the new location of the password file is obviously not mentioned in man pages of pdbedit and smbpasswd i suppose it is not meant to simply copy it over. Instead on the old server we export all samba users to a textfile and import that file into the new samba server: | ||
+ | |||
+ | <code bash> | ||
+ | # On old server: | ||
+ | pdbedit -e smbpasswd:smbusers.txt | ||
+ | # Now copy smbusers.txt to new server and on the new server: | ||
+ | pdbedit -i smbpasswd:smbusers.txt | ||
+ | </code> | ||
+ |