[[ https://www.samba.org/ | Samba Home ]] {{:未命名图片.png?600|}}====== 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 ====== * Install samba sudo apt-get install samba * Edit /etc/samba/smb.conf [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 * Add Samba users # for example sudo smbpasswd -a yxue * Restart Samba service sudo /etc/init.d/samba restart # or # sudo /usr/sbin/service smbd restart * references: [[http://wiki.linuxmce.org/index.php/How_to_setup_Samba_to_follow_symbolic_links%3F | How to setup Samba to follow symbolic links?]] ====== 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)