5

On Ubuntu, I can connect to a directory connected by samba by opening File Manager and pressing Ctrl+L and typing in location like smb://129.254.32.xxx/Private then the File Manager asks me to type in login information. The connected directory is seen at /run/user/1000/gvfs/smb-share:server=129.254.32.xxx,share=private and of course I can access the lower directory from there. For example, /run/user/1000/gvfs/smb-share:server=129.254.32.xxx,share=private/prj/abdsn.

How can I connect the samba directory using command line (instead of using Ctrl+L in File Manger)? I tried smbclient smb://129.254.32.xxx/share -U user1%passwd1 but couldn't find where it is attached. Command example would be appreciated.

1 Answer 1

7

You can replicate this:

Ctrl+L and typing in location like smb://129.254.32.xxx/Private

With this:

gio mount smb://129.254.32.xxx/Private
1
  • 2
    And then will be on cd /run/user/$(id -u)/gvfs/... Apr 5, 2023 at 17:52

You must log in to answer this question.

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