English Ukrainian
~]$ pass:attributes[{blank}][command]#net -l share -S wakko#
Password:
Enumerating shared resources (exports) on remote server:
Share name Type Description
---------- ---- -----------
data Disk Wakko data share
tmp Disk Wakko tmp share
IPC$ IPC IPC Service (Samba Server)
ADMIN$ IPC IPC Service (Samba Server)
~]$ pass:attributes[{blank}][command]#net -l user -S wakko#
root password:
User name Comment
~]$ pass:attributes[{blank}][command]#nmblookup trek# querying trek on 10.1.59.255 10.1.56.45 trek<00>
~]$ pass:attributes[{blank}][command]#pdbedit -a kristin#
new password:
retype new password:
Unix username: kristin
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1210235352-3804200048-1474496110-2012
Primary Group SID: S-1-5-21-1210235352-3804200048-1474496110-2077
Full Name: Home Directory: \\wakko\kristin
HomeDir Drive:
Logon Script:
Profile Path: \\wakko\kristin\profile
Domain: WAKKO
Account desc:
Workstations: Munged
dial:
Logon time: 0
Logoff time: Mon, 18 Jan 2038 22:14:07 GMT
Kickoff time: Mon, 18 Jan 2038 22:14:07 GMT
Password last set: Thu, 29 Jan 2004 08:29:28
GMT Password can change: Thu, 29 Jan 2004 08:29:28 GMT
Password must change: Mon, 18 Jan 2038 22:14:07 GMT
~]$ pass:attributes[{blank}][command]#pdbedit -v -L kristin#
Unix username: kristin
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1210235352-3804200048-1474496110-2012
Primary Group SID: S-1-5-21-1210235352-3804200048-1474496110-2077
Full Name:
Home Directory: \\wakko\kristin
HomeDir Drive:
Logon Script:
Profile Path: \\wakko\kristin\profile
Domain: WAKKO
Account desc:
Workstations: Munged
dial:
Logon time: 0
Logoff time: Mon, 18 Jan 2038 22:14:07 GMT
Kickoff time: Mon, 18 Jan 2038 22:14:07 GMT
Password last set: Thu, 29 Jan 2004 08:29:28 GMT
Password can change: Thu, 29 Jan 2004 08:29:28 GMT
Password must change: Mon, 18 Jan 2038 22:14:07 GMT
~]$ pass:attributes[{blank}][command]#pdbedit -L#
andriusb:505:
joe:503:
lisa:504:
kristin:506:
~]$ pass:attributes[{blank}][command]#pdbedit -x joe#
~]$ pass:attributes[{blank}][command]#pdbedit -L#
andriusb:505: lisa:504: kristin:506:
~]$ testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[tmp]" Processing section "[html]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions pass:quotes[`<enter>`] # Global parameters
Act as a _Backup Domain Controller_ (BDC) for a Samba-based PDC
Act as a BDC for a Windows PDC (and vice versa)
Act as an Active Directory domain controller
Act as an Active Directory domain member server
Act as a Windows *NT*-style _Primary Domain Controller_ (PDC)
Active Directory Domain Member Serverindexterm:[Samba,smb.conf,Active Directory Member Server example]
Active Directory Security Mode (User-Level Security)indexterm:[Samba,Security Modes,Active Directory Security Mode]
Add groups that users can be members of:
Adding a Member Server to an Active Directory Domain
Additional Resources
Add the following directives to the main section in the `/etc/samba/smb.conf` file. Also, do not use the `valid users` directive:
Add the following directive to the share section in the `/ect/samba/smb.conf` file. Do not use the `valid users` directive.
Add the `root` user to the Samba password database. You will be prompted to provide a new Samba password for the `root` user:
Adjust the `smb.conf` configuration file as shown in xref:File_and_Print_Servers.adoc#exam-Samba_Domain_Controller-PDC_Using_tdbsam[An Example Configuration of Primary Domain Controller (PDC) Using `tdbsam`].
A domain master browser collates the browse lists from local master browsers on all subnets so that browsing can occur between workgroups and subnets. Also, the domain master browser should preferably be the local master browser for its own subnet.