To share samba (windows share) with all permisson (on debian jessie) add following lines to /etc/samba/smb.conf
...
[<name media>]
path = <path to folder>
public = yes
writable = yes
comment = smb share
printable = no
guest ok = yes
read only = no
directory mask = 0775
example:
vi /etc/samba/smb.conf
.....
[media]
path = /media
public = yes
writable = yes
comment = smb share
printable = no
guest ok = yes
read only = no
directory mask = 0775
to add password simple:
[media]
path = /media
public = yes
writable = yes
comment = smb share
printable = no
guest ok = no
read only = no
directory mask = 0775
username = igunos
multiple user username = igunos, jony, antony
then add password
sudo smbpasswd -a igunos
....<your passwd>
client:
mount via cifs-utils
sudo mount -t cifs //10.1.1.60/media/ /mnt -o username=<your_username>,password=<your_password
No comments:
Post a Comment