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