Mounting samba

Posted on Updated on

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

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s