4

I have mapped a samba share from the GUI (12.04) of my desktop and it works fine, but I would like to connect to this machine (the one I mapped from) via ssh and be able to see the mapped share. However, looking at /dev etc. I don't see anything like it. It appears in the Nautilus display just fine, I can read and write, but only from the GUI,not from the terminal display. What am I missing? I mapped from the GUI so it seems I don't get to specify a mount point.

5
  • check /etc/samba/smb.conf. There is a mount point in there ([share name] and path)
    – Rinzwind
    Mar 20, 2013 at 19:57
  • How about mount|grep cifs to see all the mounted shares and the destination on which they were mounted? Mar 20, 2013 at 20:10
  • Getting closer I think but /etc/samba/smb.conf contains only persistent mounts. The mount command (without cifs) shows the list of mounts, in /run/user/[user]/gvfs it shows the mapping parameters, as: smb-share:domain=AMS,server=ams-fs07,share=marketing,user=administrator, but I can't seem to extract anything that an ls or cp would work with.
    – user142069
    Mar 20, 2013 at 20:29
  • I want to sort of wrap this up by saying that I really don't have the solution I was looking for, although I appreciate the answers I did get, which anyway taught me some things I didn't know. No matter where I look, I can find no record of the share in the file system. If I create another share at the command line, I can see that one, and maybe that's what I'll have to do, but using an existing GUI-created share -- for me, anyway -- just doesn't work. Strange, but so it is. Thanks to everyone, anyway. -- Jim
    – user142069
    Mar 26, 2013 at 20:56
  • I don't think this should have been closed.... I'm having the same problem. I can access a work windows share via GUI, but how can I even ls files in the terminal? I have a huge amount of files in the windows share that I need to categorize and it would be much simpler with ls instead of nautilus... I'm suprised this isn't a common issue
    – reas0n
    Nov 17, 2016 at 18:04

1 Answer 1

1

If a samba share is connected, you should be able to access it from Terminal simply by navigating to .gvfs/ in your home folder.

Run ls .gvfs/ to see what's in it.

2
  • 1
    Nothing there. Connected in Gnome, but nothing in that directory.
    – user142069
    Mar 20, 2013 at 21:13
  • Interesting. I just do cd ".gvfs/mini on Inspiron/", and I am in the home folder on another machine. The following also works: smbclient //server/share -U username. Mar 20, 2013 at 21:53

Not the answer you're looking for? Browse other questions tagged .