Redhat Enterprise linux5 configure Samba server (country embedded)

Source: Internet
Author: User

Configure the RedHat IP address to ensure that the RedHat can ping the xp ip address.

The RedHat IP address is best configured in static mode, so that its IP address will not change frequently. The IP Address Settings refer to the IP address of the local system.

The IP address of my host is:

IP address ......: 192.168.5.159
Subnet Mask ......: 255.255.255.0
Default Gateway ......: 192.168.5.254
Set the static IP address of RedHat in VM:

IP address ......: 192.168.5.160

Subnet Mask ......: 255.255.255.0
Default Gateway ......: 192.168.5.254

 

1. Modify the samba configuration file.

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

Add the followingCode:

[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.

If my Linux IP address is 192.168.5.160, enter \\192.168.5.160

A logon interface is displayed. Enter the account name SMB and the password for logging on to the Samba server.

 

Now files between Windows and Linux can be shared through the folder SMB!

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.