From: Wout Mertens <wout.mertens@gmail.com>
To: linux-cifs@vger.kernel.org
Subject: Fwd: mount.cifs fails but smbclient succeeds
Date: Tue, 9 Jul 2019 02:26:20 +0200 [thread overview]
Message-ID: <CAO3V83+iZRAQRZ5YzivPS3di0QM=-dJOg8rnVK1icUuuESd+=g@mail.gmail.com> (raw)
In-Reply-To: <CAO3V83L1Q9jCLBsjHgFE1jw2PPi_sHtQz4geDKC4jEPWkhNYBg@mail.gmail.com>
Hi,
I need to mount a file server that I only have credentials for and
know nothing about.
I have a completely vanilla setup without /etc/smb.conf, nor any Samba
service running; only the samba client binaries are installed. The
credentials are domain, username, password; Kerberos is not being used
as confirmed by the smbclient debug output.
When I connect using
smbclient -A credentials.txt //corp.local/mnt
it works fine. The name corp.local resolves using DNS and I can browse
the datastore.
When I mount using
mount -vvvvv -t cifs //corp.local/mnt --verbose
-overs=3,credentials=credentials.txt,sec=ntlmssp /mnt
I see that I get a STATUS_BAD_NETWORK_NAME back. If I change the
credentials, I get a logon error, and if I change the mount name, I
get a missing file error. So it seems that the path and the
credentials are correct. If I change the version to 1, it fails in
some other way. If I change the sec to ntlm, it complains about
authentication.
Any suggestions? This is driving me crazy :-/
Many thanks!
Wout.
next parent reply other threads:[~2019-07-09 0:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAO3V83L1Q9jCLBsjHgFE1jw2PPi_sHtQz4geDKC4jEPWkhNYBg@mail.gmail.com>
2019-07-09 0:26 ` Wout Mertens [this message]
2019-07-09 3:05 ` mount.cifs fails but smbclient succeeds Steve French
2019-07-09 7:31 ` Wout Mertens
2019-07-09 7:38 ` Fwd: " Aurélien Aptel
2019-07-25 13:24 ` Wout Mertens
2019-07-25 14:51 ` Wout Mertens
2019-07-25 18:51 ` Steve French
2019-07-25 20:58 ` Wout Mertens
2019-07-25 23:22 ` Steve French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO3V83+iZRAQRZ5YzivPS3di0QM=-dJOg8rnVK1icUuuESd+=g@mail.gmail.com' \
--to=wout.mertens@gmail.com \
--cc=linux-cifs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).