Configure Samba in CentOS5.5

Source: Internet
Author: User
1, install samba (centos5.5): yuminstallsambasystem-config-sambasamba-clientsamba-common2, create www account/usr/sbin/useraddwwwmkdir-p/data/wwwchmod777/data/wwwchown-Rwww:

1. install samba (centos 5.5 ):

yum install samba system-config-samba samba-client samba-common

2. create a www account

/usr/sbin/useradd wwwmkdir -p /data/wwwchmod 777 /data/wwwchown -R www:www /data/wwwcat /etc/passwd | mksmbpasswd.sh> /etc/samba/smbpasswd

3. create a samba configuration file
Mv-f/etc/samba/smb. conf/etc/samba/smb. conf. bak
Vi/etc/samba/smb. conf
As follows:

[global]server string = Samba Serversecurity = userencrypt passwords = yessmb passwd file = /etc/samba/smbpasswd[web]workgroup = wwwnetbios name = wwwpath = /data/wwwbrowseable = yeswriteable = yes

4. set a password for samba user www:

smbpasswd -a www

5. start samba:

/sbin/service smb start

6. test on a windows client

\\192.168.8.32\web

In the pop-up authentication window, enter the user name www and password (check my password) to confirm.
7. map the linux directory shared by samba to a drive letter of Windows:
Right-click my computer --> Map network drive --> select an unused drive letter, enter \ 192.168.8.32 \ web in the folder, and check "log on" to reconnect (after restarting the computer, the connection will be automatically connected), and then press Enter --> enter the user name www and password (check my password) to confirm.

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.