1. Start the Service of Samba
2. Configure Samba:
a). Samba is controlled by means of the configuration file /etc/samba and edit smb.conf
Create a basic configuration file containing the following lines:
# Global parameters
#======================= Global Settings ====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = Mygroup
# server string is the equivalent of the NT Description field
server string = testSamba
security = Share
hosts allow = mon-system01.example.com(Local Host), 172.xx.xx., 172.xx.xx.
[root]
path = /
comment = Linux root
guest ok = Yes
read only = Yes
#Folder Create
[share]
path = /share
comment = Linux share
guest ok = Yes
read only = No
# Create a users
[User1]
path = /home/user1
writeable = yes
browseable = yes
valid users = user1
[User2]
path = /home/user2
writeable = yes
browseable = yes
valid users = user2
Note:
- Disable Firewall.
- Restart the Samba service.
- Disable Firewall.
- Restart the Samba service.
0 comments:
Post a Comment