Homepage Wiki Forum Buy

Samba Server

From GNUBLIN

Installation

apt-get install samba


Configuration

Standard user creation:

adduser gnublin

Install Samba tool to merge the useraccounts from Linux to Samba

apt-get install samba-common-bin

Copy the rights:

smbpasswd -a gnublin

Save the old configuration file:

cp /etc/samba/smb.conf /etc/samba/smb.conf.orig


Content of /etc/samba/smb.conf


[global]
# workgroup
workgroup = WORKGROUP

# Access per "share" or "user"
# security = share
security = user
# only necessary if security  = user
encrypt passwords = yes 

# Network Neighbourhood
netbios name = GNUBLIN

#used adapters; not really necessary with only one
; interfaces = 192.168.1.2/24
; bind interfaces only = yes

# NT description
server string = Server Samba %v 

# Speeddoping
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 

#IP-Acces restrictions; delete the ";" to activate the  IP-Lists
;   hosts allow = 127. 192.168.1.1 192.168.1.2 192.168.1.3
;   hosts deny = 0.0.0.0/0
########## Homedirectories #########
[homes]
comment = homes
read only = no
create mask = 0700
browseable = no 
 


Start the server

/etc/init.d/samba start

Restart the server

/etc/init.d/samba restart
In other languages