Samba

From Hack Sphere Labs Wiki
Jump to: navigation, search

Debian

To Mount: install cifs-utils


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

Faking Available Drive Space