Setting Samba Server
Edit file konfigurasi samba pada
# vi /etc/samba/smb.conf
#======================= Global Settings==============
[global]
workgroup = hnl4bz
server string = smiert
hosts allow = 10.14.5.
# printcap name = /etc/printcap
# load printers = yes
# printing = cups
# cups options = raw
# guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 50
# security = user
# password server =
# password level = 8
# username level = 8
# encrypt passwords = yes
# smb passwd file = /etc/samba/smbpasswd
# unix password sync = Yes
# passwd program = /usr/bin/passwd %u
# passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
# username map = /etc/samba/smbusers
# include = /etc/samba/smb.conf.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# interfaces = 192.168.12.2/24 192.168.13.2/24
# remote browse sync = 192.168.3.25 192.168.5.255
# remote announce = 192.168.1.255 192.168.2.44
# local master = no
# os level = 33
# domain master = yes
# preferred master = yes
# domain logons = yes
# logon script = %m.bat
# logon script = %U.bat
# logon path = \\%L\Profiles\%U
# name resolve order = wins lmhosts bcast
# wins support = yes
# wins server = w.x.y.z
# wins proxy = yes
# dns proxy = no
# preserve case = no
# short preserve case = no
# default case = lower
# case sensitive = no
#============================ Share Definitions=============
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[share]
path = /home/smiert/share
public = yes
read only = yes
browseable = yes
writeable = yes
guest ok = yes
Jika ingin memakai user dan memakai password
# smbpasswd -U nobody
Jika ingin mengganti user “nobody” dengan “smiert” maka replace “nobody” dengan “smiert” pada kedua file dibawah ini :
File konfigurasi user samba pada
# vi /etc/samba/smbusers
File password user samba pada
# vi /etc/samba/smbpasswd
Untuk menjalankan samba secara otomatis pada saat booting dengan
# chkconfig samba on
Untuk mengontrol service samba dengan
# /etc/init.d/smb { start | stop | restart | reload | status | condrestart }
Untuk mengecek apakah samba server pada ( contoh : 10.14.5.86 ) sudah dapat dijalankan dengan membuka Konqueror dan pada Address bar mengetikkan smb://10.14.5.86/nt-server-name