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.