HOME RESTORATION DIGITAL PHOTOS DIGITAL BOOKS PROFESSIONAL HISTORY CONTACT ME


Debian 8 Installing a Samba Server

Domain name: example.com     Realm name: EXAMPLE.COM

Workgroup: EXAMPLE     Server IP address: xx.xx.xx.xx

Server name: linuxsvr01     Client name: linuxclnt01

Root password: ?Pa55w0rd!

The following command installs Samba

# aptitude -y install samba

Next the configuration, I like to start with an empty smb.conf so make a backup of as follows

# cp /etc/samba/smb.conf /etc/samba.conf.bak

Open the file, delete everything, and add the following (the share is for windows to edit html and php files).

# vi /etc/samba/smb.conf
[global]
workgroup = EXAMPLE
server string = Samba Server %v
netbios name = LINUXSVR01
security = user
map to guest = bad user
dns proxy = no

[apache]
path = /var/www/html
browsable = yes
writable = yes
guest ok = yes
dns proxy = no

The share needs read/write permissions and be available for everyone in Windows.

# chmod -R 777 /var/www/html
# chown -R nobody:nogroup /var/www/html

When you mount the file in windows linuxsvr01\apache (or xx.xx.xx.xx\apache) I have found it necessary to change the security settings to full control for everyone and nobody (linuxsvr01\nobody).