Step-1: To configure Samba as a member server of windows domain controller edits the smb.conf file as like below
Kerberos is an authentication protocol that is used to send data from one system to another in encrypted form.
- Create a machine account of member server in to the domain controller.
- Associate the member server to the Active directory domain
- Double click 'My Computer'
- Right click on the CD-ROM drive and choose ' Properties' then Sharing
- Set the Share Name as 'cdrom' and the appropriate access control
- Logout and login again as normal using your current login
[root@ srv1]# mkdir /opt/CDROM
[root@ srv1]# chown root:samba-users /opt/CDROM
[root@ srv1]# smbmount //IP or machine name/Share_name /opt/CDROM
[root@ srv1]# mount –t smbfs //IP or machine name/share_name /opt/CDROM
After that you should permanently mount the drive that it can load the share on every restart.
[root@ ~]# vi /etc/fstab
Then type this path following by space or tab key
//windows_IP/Share_name /opt/CDROM smbfs username=nobody 0 0
Now put a share definition in to the share section on smb.conf
From Linux machine:
[root@ srv1]# smbclient –L //Win_IP
Now you can use various command like: - dir, cd, put, get, pwd, ls, mget, q etc
Testing the Samba Configuration File
To test the configuration file for syntax errors, use the “testparm” command. It will also list all settings currently in place, including defaults that may not appear in the configuration file.
Use the smbclient command to test your share. You should substitute the name of your Windows client PC for "Client1," and in place of "username" provide a valid workgroup/domain username that normally has access to the Windows client. You should get output like this when using the username's corresponding password:
[root@srv1 ~]# smbclient -L Client1 -U user1