To access the resources of Samba, a user needs a POSIX (Linux) user account available to them and a Samba account. The POSIX account can be an ordinary account within the
/etc/passwd file or this account can be centralized in LDAP or an Active Directory. When a POSIX account is enabled for Samba, additional attributes that are required by Windows systems are added to the user account. To enable an existing POSIX account with Samba, we can use the
/bin/pdbedit command. This can work with Samba accounts in the following account stores:
tdbsamdatabase located at
/var/lib/samba/private/passdb.tdb(this is the default samba account store)
As existing domain accounts ...