Three basic samba modes

Source: Internet
Author: User
Passdbbackend is the meaning of the user's background. There are currently three backend types: smbpasswd, tdbsam, and ldapsam. Sam should be short for securityaccountmanager (secure account management. 1. smbpasswd: This method uses the smb tool smbpasswd to give the system user...

 

Passdb backend is the meaning of the user background. There are currently three backend types: smbpasswd, tdbsam, and ldapsam. Sam should be short for security account manager.

 

1. smbpasswd: This method uses the smb tool smbpasswd to give the system user (real

Users or virtual users) set a Samba password, which is used by the client to access Samba resources. The smbpasswd file is in the/etc/samba directory by default, but you sometimes need to create this file manually.

 

2. tdbsam: This method uses a database file to create a user database. The database file is called passdb. tdb, which is in the/etc/samba directory by default. Passdb. tdb user databases can use smbpasswd-a to create Samba users, but the Samba users to be created must first be system users. We can also use the pdbedit command to create a Samba account. The pdbedit command has many parameters. we will list several main parameters.

Pdbedit-a username: Create a Samba account.

Pdbedit-x username: delete the Samba account.

Pdbedit-L: list Samba users and read the passdb. tdb database files.

Pdbedit-Lv: list detailed information about the Samba user list.

Pdbedit-c "[D]"-u username: suspend the account of this Samba user.

Pdbedit-c "[]"-u username: restore the Samba user's account.

 

3. ldapsam: The LDAP-based account management method is used to authenticate users. First, create the LDAP service, and then set "passdb backend = ldapsam: ldap: // LDAP Server"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.