Build Samba server with Fedora14

Source: Internet
Author: User
The samba server can share files between windows and linux. the SMB protocol is an application protocol built on the NetBIOS protocol. It is a service based on the TCP138 and 139 ports. When NetBIOS appears, microsoft uses NetBIOS to implement a network file/print service system. The system sets a file sharing protocol based on NetBIOS. Microsoft calls it the SMB (ServerMessageBlock) protocol, which is used

The samba server can share files between windows and linux. the SMB protocol is an application protocol built on the NetBIOS protocol. It is a service based on the TCP138 and 139 ports. When NetBIOS appears, microsoft uses NetBIOS to implement a network file/print service system. This system sets a file sharing protocol based on NetBIOS, which Microsoft calls SMB (Server Message Block) protocol. This protocol is used in Lan Manager and Windows Server systems, allows different computers to share printers and files.

Fedora Samba enables SMB to run on the NetBIOS protocol, and uses the NetBEUI protocol of Windows to allow Unix/Linux servers to be accessed on Windows Network neighbors.

During embedded linux development, it is inevitable that files and printing will be shared between the linux host development environment and the windows operating system. Of course, there are various implementation methods, here, I create a Samba server under Fedora14 to share files between fedora and windows.

1. Install the samba server
You can install samba online through yum.
Yum-y install samba
Of course, you can also choose system-management-Add/delete programs to install them. Search for smaba in the window and select the appropriate program version for installation.
(During installation, make sure that yum is available and the network configuration is correct .)

Ii. Configure the smaba Server
The configuration is mainly implemented by editing/etc/samba/smb. conf. (Read/write permission, su to root)
You can use chmod 777 smb. conf to edit the file in a text editor. You can also use VI to edit the file directly.
[Root @ localhost ~] # Vi/etc/Samba/smb. conf configure edit the configuration file of Samba ora Samba
Workgroup = WORKGROUP // set a Working Group
Server string = % U's Samba % v // description % U indicates the current Login User
Netbios name = fedora // netbios name. fedora9 is not enabled by default.
Log file =/var/log/Samba/log. % m // log file storage PATH % m your windows Host Name
Max log size = 50 // maximum log capacity
Security = user // security level. The user must have the user name and password, but not the share level.
[Fedora Samba] // create a share named Fedora Samba
Comment = Samba // description
Path =/home/bsc/samba // shared path
Public = no // whether to allow access by the guest user (equivalent to guest OK = yes/no)
Writable = yes // whether to write
Write list = bsc // a list of users that can be written (@ represents the user group)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.