OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

6.1. Accessing a Samba Share


Another use for Samba is to integrate into an existing Windows network. Once part of an Active Directory domain, Samba can provide file and print services to AD users. For details on how to join a domain, see the Section 5, “SSSD and Active Directory” [p. 161] chapter of this guide.


Once part of the Active Directory domain, enter the following command in the terminal prompt:


sudo apt install samba cifs-utils smbclient


Next, edit /etc/samba/smb.conf changing:


workgroup = EXAMPLE

...

security = ads realm = EXAMPLE.COM

...

idmap backend = lwopen idmap uid = 50-9999999999 idmap gid = 50-9999999999


Restart samba for the new settings to take effect:


sudo systemctl restart smbd.service nmbd.service


You should now be able to access any Samba shares from a Windows client. However, be sure to give the appropriate AD users or groups access to the share directory. See Section 4, “Securing File and Print Server” [p. 312] for more details.


Top OS Cloud Computing at OnWorks: