Sunday, January 30, 2005

Setting Up a Samba Share

I needed to set up Samba access from my firewall machine to the main server so that I could access my MP3s from SlimServer, so here's what I did:

1/ set up a new Linux user on the file server with minimal privilages called "share" (with a nice complex password).
2/ set up the new user for Samba with the same user name and password
3/ On the firewall machine edit create a file in /etc called smbmnt.pwd containing:
Username = share
Password = complex password
4/ set file permissions so that only root can read this file
5/ create the directory /mnt/music
6/ edit the /etc/fstab file to add an entry for the new samba share
//FileServer/mp3s /mnt/music smbfs credentials=/etc/smbmnt.pwd 0 0
7/ mount the new filesystem - if all goes well it should appear under /mnt/music

N.B. The mp3s share was already set up for windows clients, so I didn't need to set it up
Comments: Post a Comment