Difference between revisions of "Samba"
From Hack Sphere Labs Wiki
(→FSTAB) |
|||
Line 39: | Line 39: | ||
=FSTAB= | =FSTAB= | ||
Take noauto out to have it mount automatically on boot. | Take noauto out to have it mount automatically on boot. | ||
− | // | + | //host/mount /bla/bla cifs cache=none,credentials=/root/smbcreds/smbpasswd,uid=1000,gid=100,noauto 0 |
nano /root/smbcreds/smbpasswd | nano /root/smbcreds/smbpasswd |
Revision as of 07:13, 26 September 2015
Debian
To Mount: install cifs-utils
- http://www.unixmen.com/standalone-samba-in-debian-squeeze/
- http://charlesa.net/tutorials/debian/debiansamba.php
adduser bla
disable ssh
smbpasswd -a username
Sample Config File
smb.conf
security = user [VIDEO] comment = Videos path = /media/bla writeable = no # guest ok = yes [MUSIC] comment = Music path = /media/bla writeable = no # guest ok = yes [GF] comment = gf path = /media/bla writeable = yes valid users = lol write list = lol guest ok = no
FSTAB
Take noauto out to have it mount automatically on boot.
//host/mount /bla/bla cifs cache=none,credentials=/root/smbcreds/smbpasswd,uid=1000,gid=100,noauto 0
nano /root/smbcreds/smbpasswd
username=user password=pass