Be Smart

FANTAISIE

SmartPhone - iPhone, iPad, Android

导航

[Linux 資訊] How to Install Samba?

Samba

 http://www.samba.org/

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

 

 

posted on 2011-01-25 17:34  FANTAISIE  阅读(337)  评论(0编辑  收藏  举报