3

I want to access an SMB share on our intranet.

  • When I execute
    smbclient -L //intranet.host/ -U myuser
    
    I can enter my password and get a list of all shares.
  • When I want to enter the smb shell with
    smbclient //intranet.host/ -U myuser
    
    I'm not asked for my password and the command returns without any output.

What am I missing here?

1 Answer 1

2

You can't access the shell for listing shares. You can only access the shell when actually connecting to a share.

This will work fine:

root@server /root $ smbclient //fqdn.local/ExistingShareName -U domain\\user
Enter domain\user's password:
Try "help" to get a list of possible commands.
smb: \>

This won't:

root@server /root $ smbclient //fqdn.local/ -U domain\\user
(returns errorcode 1)

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.