samba - LanManager-like file and printer server for Unix.
libsmbclient - Shared library that allows applications to talk to SMB servers
#apt-get install samba samba-client
#mkdir chun
#useradd chuns
#smbpasswd -a chuns
vi /etc/samba/smb.conf
[global]
workgroup = debian
netbios name = debianserver
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
[SAMBA]
path=/samba
browseable=yes
writeable=yes
valid users = ruchi
admin users = debain
#testparm
Now you need to restart the samba to take the new changes effect
#/etc/init.d/samba restart
#smbclient -L //debianserver -U chuns
參考文檔:
http://www.debianhelp.co.uk/samba.htm