Samba
Installing samba on CentOS
#yum clean all
#yum install samba
Than edit the configuration
[root@rc-90]#vi/etc/samba/smb.conf
[Image-Bank]
path = /softwares/Designers-image/Image-Bank/comment = Share for Designers
public = yes
printable = no
guest ok = yes
write list = +admins
Mounting samba
Mount samba on unix PC
mount -t cifs //<IP>/path/to/share/ /mount/point
Mount windows share with changing privileges in /etc/fstab
//192.168.2.5/publish-share/ /mnt/storage/ cifs username=Username,password=Passowrd,rw,nounix,iocharset=utf8,file_mode=0775,dir_mode=0775,uid=91,gid=91 0 0
These are the options
192.168.2.5 = Remote IP
publish-share = Remote
share name /mnt/storage/ = Local location
cifs = File system type
username = Remote username (optional)
password= Remote password (optional)
rw = Read / Write Permission
nounix = Unix options (optional)
iocharset = Setup character set (optional)
file_mode = Default file permission , should be 777 for anonymous file sharing
dir_mode = Default folder permission , should be 777 for anonymous file sharing
uid = setup Local User authorized local user to read and write
gid = setup Local Group authorized local user to read and write
0 0 = disable startup filesystem check