Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have several Samba mounts on an Ubuntu server. When I ssh into that box remotely (instead of working directly on the box), I cannot see the mounted file systems (ie, if I ls there are no results).

Is this normal, have my mounts failed to load in my absense, or is something else at play?

share|improve this question
add comment

1 Answer 1

How are your samba shares being mounted? Do you use /etc/fstab like:

//servername/sharename /mountdirectory smbfs username=windowsuserename,password=windowspassword 0 0

or do you mount them through file manager (nautilus or some similiar), and use Gnome Virtual File System (gvfs)?
If your mounts are permanents, through fstab, you should see them always, unless you have your ssh sessions, chrooted (in a safe sandbox). http://en.wikipedia.org/wiki/Chrooted
To mount your samba share/resource manually you could use:

mount -t smbfs //servername/sharename /mountdirectory -o  username=mywindowsusername,password=mywindowspassword

Can you post the output for the mount command on both scenarios, local session and ssh?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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