RedHat5Samba Server Configuration

Source: Internet
Author: User
1: Install the installation package file in the server directory of the RedHat installation disc, such as: samba-3.0.23c-2.el5.i386.rpm, use the command to install # rpm-ivhsamba-3.0.23c-2.el5.i386.rpm2: configure samba user authentication [1] to add a samba service account (the user account in the linux operating system cannot directly log on to the samba server.

1: Installation

Find the installation package file, such as the samba-3.0.23c-2.el5.i386.rpm, In the server Directory of the RedHat installation disc, by using the command to install

# Rpm-ivh samba-3.0.23c-2.el5.i386.rpm

2: Configure samba User Authentication

[1] Add a samba service account (the user account in the linux operating system cannot directly log on to the samba server. You need to create a new samba user account password for the linux User)

# Smbpasswd-a xxx (Format: smbpasswd-a linux User Name)

[2] Add User ing (User ing refers to the ing of different accounts in windows and linux systems into one user account. After the ing, the windows account can be accessed directly using the windows account when connecting to the samba server. Edit the/etc/samba/smbusers file and add the user to the file for ing. Parameter format: Independent linux Account = windows account to be mapped

3: edit the/etc/samba/smb. conf file.

[1] add in global configuration section

Username map =/etc/samba/smbusers

[2] add after security = user

Guest account = xxx (username added with smbpasswd)

Encrypt passwords = yes

Smb passwd file =/etc/samba/smbpasswd

[3] add in Share Definitions configuration section

[Share] (shared directory name)

Path =/home/share (shared directory path)

Write list = @ share (share user group has read and write permissions)

4: Set a directory share. Its path on the samba server is/home/share. Only users in the share group can read and write the directory.

# Groupadd share

# Usermod-G share xxx

# Mkdir/home/share

# Chown: share/home/share

# Chmod-c g + wxr/home/share

5. windows Client Access

[Start]-> [run]-> enter the IP address of the \ samba server-> [OK]-> enter the user name and password

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.