Samba Server Configuration

Source: Internet
Author: User
Samba server configuration-general Linux technology-Linux technology and application information. For more information, see. 1. Check whether the Samba service is installed:
Rpm-qa | grep samba
If not installed, you can install it separately:
Download or find from the CD:
Samba-3.0.10-14E.i386.rpm // samba server software
Samba-client-3.0.10-1.4E.i386.rpm // samba client software
Samba-comment-. 0.10-14. i386.rpm // files required by the samba server and client
Samba-swat samba web configuration tool
2. Installation
Rpm-ivh samba *
3. Start the samba Service
Service smb start // close: stop restart: restart
4. Configuration
Useradd user1-g root // Add user1 to the system to belong to the root group
Smbpasswd-a user1 // Add account user1 To The smbpasswd file.
Or: cat/etc/passwd | mksmbpasswd. sh>/etc/samba/smbpasswd add all accounts in the system to the samba file in batches.
5. Configure the Connection Client
Vim/etc/samba/smb. conf
// Modify the following lines
Workgroup = WORKGROUP
Hosts allow = 192.168.16.5 // allow workstation with ip address 192.168.16.5 to access samba Server

Configure the/media directory on the samba server as shared read-only, and share name as share. Allow all users to access
Add the following content to/etc/samba/smb. conf:
[Share]
Comment = this is/media
Path =/media
Public = yes
Read only = yes
Save and exit. Restart samba!
Then, when the IP address is 192.168.16.5 (My Intranet address depends on your own situation), the Network Neighbor-entire network-workgroup-media
Haha... From then on, windows and linux can communicate and access each other ....
(Another method for mutual access between windows and linux: vsftp configuration method I have configured before. Welcome to and support it)

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.