Samba

From Hack Sphere Labs Wiki
Revision as of 11:56, 4 October 2015 by Webdawg (talk | contribs) (FSTAB)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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