Table of Contents

Samba Home

when coming across bug

* bug1:“您可能没有权限使用网络资源”

fix method: 
  * enter dos interface
          * $command+R -> cmd ,enter 
  * check current connecting status $net use
          * $net use
  * delete current connecting status
          * $net use * /del /y

Configure Samba in Debian/Ubuntu

sudo apt-get install samba
[global]
    ...
    workgroup = XUE
    
    # if you want to follow soft links
    follow symlinks = yes
    wide links = yes
    ...
    
[homes]
    ...
    read only = no
    ...
    
# add the following section
[group]
   comment = Shared Files
   read only = no
   locking = no
   path = /home/pub
   guest ok = no
# for example
sudo smbpasswd -a yxue
sudo /etc/init.d/samba restart
# or
# sudo /usr/sbin/service smbd restart

Configure Samba in Slackware-11.0

install package

* Install samba-3.0.23c * rename smb.conf-sample to smb.conf in /etc/samba

modify config file

* In [global]

workgroup = nikolai
server string = Bloch-Samba # this description appears in Net-Neighbor of windows, probably :)
security = user # if you want to make it public, i.e., no password is required, change it into "share"
hosts allow = 128.210.142.134, 128.210.142.185, 128.210.142,137, 128.210.142.69, bax, redfield, kay, ernst

* In [Home], [Printers], nothing to be changed * In [tmp]

path = /tmp
read only = no
public = yes

* In [Public]

path = /home
writable = yes

add users

* e.g., add “yxue”

sudo smbpasswd -a yxue

start samba

/etc/rc.d/rc.samba start (or restart, if already running)