Steps to install SMB:
1. Install the RPM package
Mount/dev/cdrom/mnt
Cd/mnt/package
Rpm-ivh samba-3 .....
2. Filtering the configuration file
Cd/etc/samba
MV Smb.conf Smb.conf.bak
Grep-v "^#" Smb.conf.bak | Grep-v "^*" | Grep-v "^$" | Grep-v "^;" > smb.conf
3. Modify the configuration file for anonymous sharing
Modify smb.conf in security = Share
Add at the end of the document
[Share]
Path =/share (add shared path, make sure this directory exists)
Public = yes (allow everyone to access)
Writable = Yes (allows all people to write)
Restart Service
Verify with Client
4. Add a shared and user alias with authentication
Modify smb.conf in security = user
Under [Global]
Add on username map =/etc/samba/smbusers
Add King = k line in/etc/samba/smbusers
Add an SMB account
Smbpasswd-a King
Restart Service
Login verification with K to act as king access
5. Establish a shared folder that requires authentication share
Adding in the smb.conf configuration file
[Share]
Path =/share
browseable = yes
Valid users = root,king
Write list = root
Save and exit
Restart Service
Login verification with Test account
6. Configure deny an IP access share
Under [Global]
Add hosts deny = 192.168.1.2
Restart Service
Client and other client access authentication with IP 192.168.1.2, respectively
Steps for Linux to install SMB: