Samba Server
yum install samba -y
make a directory
mkdir /share
Add user
useradd jack--add user
Create a password for smb user
smbpasswd -a jack
--> chmod 777 /share
6.edit configuration file of samba
vim /etc/samba/smb.conf
copy last 7 line
[public]
comment=public Stuff
path= /share
valid user = jack
public = yes
writable = yes
printable = yes
write list = +staff
7. service smb restart
8. service smb restart
clear
9. now disable firewall
10 .--> service smb restart
lets go to windows clients
add windows machine to admin workgroup
it will asks to restart the machine
To Mount Samba Shared Directory On Linux Client
# smbclient –L 192.168.1.1 –U smbuser
This command will show u what is shared through samba
from 192.168.1.1
#mount.cifs –o username=samba //192.168.1.1/smbshared
/mnt
This command will mount samba shared directory on
mnt