RedHatEnterpriseLinux5 configure the Samba server

Source: Internet
Author: User
RedHatEnterpriseLinux5 simple process for configuring the Samba server: 1. Modify the samba configuration file. Command: # vi/etc/samba/smb. conf Add the following code: [root] comment = RootDirectoriesbrowseable = yeswritable = yespath =/validuse

RedHat Enterprise Linux 5 is a simple process for configuring the Samba server:

1. Modify the samba configuration file.

Command: # vi/etc/samba/smb. conf

Add the following code:

[Root]

Comment = Root Directories

Browseable = yes

Writable = yes

Path =/

Valid users = smb

2. Add a user. Note that the added user is the same as the valid users = smb part of the configuration file. If the smb User exists, you do not need to add it.

Command: # useradd smb

3. Set the password for logging on to the samba server with the smb account

Command: # smbpasswd-a smb

4. Restart the samba server.

Command: #/etc/init. d/smb restart

5. log on to the samba server in Windows when the Windows and unux networks are smooth.

1) Use the ifconfig command in Linux to Query IP addresses (e. g 192.168.5.160)

2) input \ 192.168.5.160 in Windows running (win + r)

3) a logon interface is displayed. Enter the account name smb and the logon password of the samba server you just set.

[Note] If the "No network provider accepts the specified network path" dialog box is displayed, it means that the firewall is not closed. Use the setup command to close 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.