Samba
From Hack Sphere Labs Wiki
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