Install and configure Samba in centos and share it with Windows

Source: Internet
Author: User

Refer to the installation method here, if there is no network.

Http://blog.chinaunix.net/space.php? Uid = 20715874 & Do = Blog & cuid = 733101

Usually there is a network, so there is no need to be so troublesome. Then let's start with ^_^.

--------------------------------------------------------------------

Host OS: Windows 7.

Guest OS: centos 5.7

Virtual Machine: VMWare Player 4 build.

Connection Type: Nat

--------------------------------------------------------------------

Open terminal:

# Yum install samba

# Yum install system-config-samba

# Setup disabled SELinux // This is to prevent external access to centos from being blocked by SELinux.

|-Security level enabled // modify

|-Customize-> allow inconing-> modify samba

# System-config-sabma

|-Preference-> Samba users-> Add User-> example:

 

|-Preference-> server settings-> basic-> Workgroup: workgroup

|-Preference-> server settings-> basic-> Security: encrypt passwards: Yes

|-Add share-> access-> only allow access to specific users: *** (username)

|-Basic:

#/Etc/init. d/SMB start samba
Now you can access it.

#/Sbin/ifconfig (to obtain the address dynamically allocated by the current virtual machine, you can set a static IP address for the virtual machine)

Take a look at Inet ADDR: 192.168.72.128

Return to winodws OS and enter
\ 192.168.72.128

OK. Successful access is as follows:

PS:

Extension 1: folder permission issues <-you can use chmod 777 *** to modify them!

Extension 2: Samba file configuration problems <-# vi/etc/samba/smb. conf

Extension 3: Add Samba to auto-start <-# vi/etc/TPD/custom. conf

I just got started with the network. I hope I can help anyone who needs it. ^_^

Related Article

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.