1. Login with root account
2. Edit /etc/samba/smb.conf file
2.1 "workgroup = xxx" ( xxx is your workgroup of windows, ex. WORKGROUP )
2.2 "netbios name = yyy" ( yyy is your computer name of windows, ex. howard-laptop )
2.3 "smb passwd file = /etc/samba/smbpasswd"
2.4 add some options in [homes]
valid users = %S
create mask = 0664
directory mask = 0775
2.5 share root directory
[rootdir]
comment = Root Directory
path = /
writeable = yes
guest ok = yes
3. Generate smbpasswd ( /etc/samba/ ) if it doesn't exist
3.1 "touch smbpasswd"
3.2 "chown root:root smbpasswd"
3.3 "chmod 600 smbpasswd"
4. Set password for root of samba, run "smbpasswd -a root"
5. Disable firewall, run "iptables -F"
6. Start Samba server, run "/etc/rc.d/init.d/smb start"
7. Configure root directory on Samba server as your Windows network drive
7.1 Open your browser, I.E., enter "\\10.10.10.1" ( assuming 10.10.10.1 is the ip address of Samba server )
7.2 Right click on the "rootdir" and choose "Map Network Drive.." as your local drive of Windows.
file name : /etc/samba/sam.conf
[global]
workgroup = KINGKYHOUSE
netbios name = kingkylinux
server string = kingky's SAMBA server
log file = /var/log/samba/%m.log
max log size = 50
; security = user
; encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
username map = /etc/samba/smbusers
[home]
comment = Home Directory
browseable = no
writeable = yes
valid users = %S
create mask = 0664
directory mask = 0775
[rootdir]
comment = Root Directory
path = /
writeable = yes
guest ok = yes