I have access to a linux machine, but not root access. I can access a samba share through smbclient. I'd like to be able to mount this share so I can access it from within Matlab. Normally, if I had root access, this would be trivial. But since I don't, I'm not sure how to proceed.

EDIT:

smbmount isn't installed on this machine. mount.cifs is installed, which I think I read is a replacement for smbmount? However, when I try it, it says I need to run it sudo.

Does smbmount (or mount.cifs) need to be suid in order for a non root user to mount a samba share?

link|improve this question
I've never tried this and I'm not near a linux machine, but you could try mounting it to a folder in your home directory. mkdir ~/mnt and then mount //SERVED/SAMBASHARE ~/mnt might work? – Rob Dec 5 '11 at 15:15
feedback

migrated from stackoverflow.com Dec 5 '11 at 15:11

This question came from our site for professional and enthusiast programmers.

1 Answer

You can use smbmount which was created for this exact purpose.

Actually, I found a nice similar question on AskUbuntu. They suggest to use smbnetfs.

link|improve this answer
1  
This won't work. smbmount still need root access to manipulate the kernel data structures to make the mount work. The "user" mount option in fstab must be used as suggested here. gvfs is also an alternative. – billc.cn Dec 5 '11 at 17:13
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.