Package : samba
Service : smb
config : /etc/samba/smb.conf
1) Install the samba Package
#yum install samba
2) Create an directory to share the files
#mkdir /data
3) Give full permission to the created directory
#chmod 777 /data
4) In Configuration file made the changes to use effective
WORKGROUOP=WORKGROUP
In last line,
[data]
comment = data
path = /data
valid user = mugu
writable = yes
printable = no
browseable = yes
Save the configuration file
5) To check any error in smb.conf file
#testparm -s
6) Create user and give the password to access the samba server
#useradd mugu
#smbpasswd -a mugu
7) In windows machine also set the workgroup as WORKGROUP
My Computer----> Properties ----> Computer Name
8) Turn off the firewall in the windows machine
Control Panel -----> Security Center
9) Sharing the partition you want to share with the Linux machine
10) Restart the service
#service smb restart
11) Mount the Windows in Linux
#mount -t cifs -o user=administrator //WinIP/C /media
Where,
cifs=Common Internet File System
12) To access the linux from the windows machine
start--->Run--->\\151.8.99.27(Linux ip)
13) Give the Samba server username and password
No comments:
Post a Comment