Ways to map the directory of a CentOS server to a Windows disk drive

Source: Internet
Author: User
Tags centos centos server

1. Install Samba (CentOS 5.5):

The code is as follows:

Yum Install samba System-config-samba samba-client Samba-common

 2. Create WWW account

The code is as follows:

/usr/sbin/useradd www


chmod 777/data/www

Chown-r www:www/data/www

cat/etc/passwd | Mksmbpasswd.sh>/etc/samba/smbpasswd

 3. Create Samba configuration file

The code is as follows:



As follows:

The code is as follows:


Server string = Samba Server

Security = User

Encrypt passwords = yes

SMB passwd file =/etc/samba/smbpasswd


Workgroup = www

NetBIOS name = www

Path =/data/www

browseable = yes

writeable = yes

4. Set a password for the samba user www:

The code is as follows:

Smbpasswd-a www

5. Start Samba:

The code is as follows:

/sbin/service SMB Start

 6. Test in Windows Client

The code is as follows:

Enter user name www and password in the pop-up authentication window (tick remember my password) ok

 7. Map the Linux directory shared by Samba to a drive letter in Windows:

My Computer right button--> mapped network drive--> Select a drive letter that is not used, enter in the folder, check the connection again when you log on (this will automatically connect after you restart the computer), and then enter--> Enter username www and password (tick remember my password) OK, okay.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.