Freecode is die.
-*- mode: outline; coding: utf-8 -*-
* Debian
Install smbfs package:
$ apt-get install smbfs
Create new group:
$ groupadd smbgrp
Add permitions for user that may used mount point:
$ useradd me smbgrp
$ useradd you smbgrp
Make password file:
$ cat >/etc/.smbpass
username=<smb-user>
password=<smb-pass>
domain=<WORKGROUP>
^D
Make mount point:
$ mkdir /mnt/smb
$ chgrp smbgrp /mnt/smb
$ chmod 770 /mnt/smb
Add this line to /etc/fstab
XXX correct uid=root,gid=smbgrp,umode=775,fmask=775
//192.168.xx.xx/share-point /mnt/smb smbfs rw,credentials=/etc/.smbpass,uid=root,gid=smbgrp,umode=775,fmask=775
* FreeBSD
* Solaris