-   Linux - Software (
-   -   Mounting Samba Share (

linux_or_bust 02-15-2005 09:28 AM

Mounting Samba Share
Does anyone know how to mount a Samba Share? I am currently using Suse 9.2 Pro. I am trying to use XMMS to listen to music on a network. The music files are located on another computer (obviously). Samba is set up right, and I have no problem viewing the files. I just can't find out how to get XMMS to open the file.

hamish 02-15-2005 09:35 AM

If it is mounted on your client (say, in /mnt/samba) then linux just thinks that /mnt/samba is on your local drive.

In XMMS, just click "add file" and then navigate in the GUI to /mnt/samba.


linux_or_bust 02-15-2005 09:42 AM

great, i will check it out tonight


ckr 02-15-2005 10:38 AM

My own playing with Samba over the past 2 days has shown me something you might want to be aware of. Make sure that whatever files you're trying to access has the correct permissions. Not a problem if everything's global, but if you've got more restrictive permissions on the files it could be a problem. Just mounting the share might not work, as I discovered.

zymurgist 02-15-2005 10:48 AM

You could always add the mount info to /etc/fstab:

//server/directory /mnt/whatever smbfs credentials=/etc/sambacred,uid=###,gid=###,fmask=664

Fill in the ### with the uid and gid from /etc/passwd and /etc/group and populate the /etc/sambacred file with:
And make sure its only readable by root.


hamish 02-15-2005 12:36 PM

what does "fmask=664" do? I can't remember if I'm using it in my fstab, but I was curious.


zymurgist 02-16-2005 09:38 AM

fmask=664 sets the file mode to 664 for new file creation in the samba directory.

All times are GMT -5. The time now is 03:04 AM.