Here is a simple scenario I have:
- Windows 7 is sharing a folder (D:\Projects).
- Full Control permissions have been given to the folder.
- In Ubuntu 10.10, I can see the Windows shares from Places -> Network menu.
- I can create a folder in the shared Projects folder from Nautilus
How do I ls
those same folders (displayed in Nautilus) from the terminal?
(mount
and ls /mnt
do not list those Windows shares)
Ps. Details on what I am doing:
- Using Ubuntu as a "headless" VM using VirtualBox.
- Accessing Ubuntu via PuTTY
- Ability to give complete access to the Ubuntu VM for the Windows shared folder
Best Answer
If you've already used Nautilus to connect to the shares you're interested in, then the mounts for those shares are available in ~/.gvfs
So I've gone to my nautilus and typed smb://192.168.1.10/data into my location bar, which has mounted the share. Then :
If you need to list available shares, then as Danny says, you use smbclient. In my case, I use "share" security model (not recommended!), so I don't need the -U parameter :