Thursday, September 6, 2007

samba sharing

Also see HowTo

sudo apt-get install samba smbfs

/etc/samba/smb.conf:
[...]
security = user
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
[...]

[some-share]
path = /media/some-share
available = yes
browseable = yes
read only = no
valid users = leo
guest ok = no

sudo smbpasswd -a username

/etc/samba/smbusers:
username = "username"

sudo testparm
sudo /etc/init.d/samba reload

client /etc/fstab:
//computer-name/some-share /media/some-share smbfs credentials=/home/leo/.smbpasswd,rw,exec,auto,uid=leo,gid=leo 0 0

No comments: