[Linux 資訊] How to Install Samba?
时间:2011-01-25 来源:FANTAISIE
Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy.
Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others.
Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.
How to install Samba?
<1> Install
#sudo apt-get install samba smbfs
<2> Add root for samba
#smbpasswd -a root
<3> Set smb.conf
#cd /etc/samba
#mv smb.conf smb.conf.bak
#vim smb.conf
[x3] //Displayed name of shared document
path=/home/x4 //x4 is the folder you want to share
valid users=root //x4 only allows root to get in
public=no //no means only root can see the folder, yes means everyone can see the folder but only root can get in the folder
writable=yes // allow root to write
<4> Check syntax error
#testparm
<5> Reset samba server
#/etc/init.d/smbd restart