Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When accessing SMB shared that are password-protected, smbclient works just fine.

But when I'm trying to access shared that have no password protection (public shares), smbclient prints:

tree connect failed: NT_STATUS_ACCESS_DENIED

How can I access those shares?

I'm trying to access Windows 7 from my Ubuntu 12.10

share|improve this question
I believe that is not the complete error message... – schaiba Feb 17 '13 at 20:35
@schaiba - It also says Anonymous login successful if it helps – speller Feb 17 '13 at 20:39
Yes, it helps. Remove live essentials from the Windows 7 server and try again, it's an old bug. – schaiba Feb 17 '13 at 20:46
@schaiba - I don't have live essentials – speller Feb 17 '13 at 20:56
which version of samba you use? $smbd --version – Yurij73 Mar 4 '13 at 6:12

Answering quite an old question, I can do this using smbclient like this:

$ smbclient //host/share -U " "%" "
Domain=[WORKGROUP] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
smb: \>

This is from a fedora 21 host connecting to a solaris clone (omnios), but should be the same to a windows host.

share|improve this answer

Could you check which security option is given in your smb.conf. By default security = user option will be enabled under Standalone Server option .User level of security asks for username/passwd in windows while if you keep the security = share it wont ask for credentials or can access share without password. This option can also be appended to your local share definitions.

share|improve this answer
It was indeed security = user but it was also commented-out. Tries un-commenting it, and changed it to security = share, but I got the same results – speller Feb 19 '13 at 19:38

if your mount point is /home/myuser/mountpoint and shared folder is named sharefolder. You should try mount -t cifs //<your shareserver name or ip>/sharefolder -o username=guest,password="" /home/myuser/mountpoint

share|improve this answer
Tried it, but I'm getting mount error(5): Input/output error. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) And if I sniff with Wireshark I see I get STATUS_ACCOUNT_RESTRICTION from the server – speller Feb 19 '13 at 19:33
does windows share permit folder read/write for guests? – Yurij73 Feb 20 '13 at 6:19
check for sure that the full sharepath is accessible. your sharefolder and all higher level folder must be +r+x at least. – Yurij73 Feb 20 '13 at 15:41

From here:

by default network access is denied to accounts which don't have a
password... you can change this option in the group policy

Well, appears it's not possible. Microsoft probably thought this is clever..

share|improve this answer
Sorry for that comment, if something goes wrong. I use a windows 2003 and XPs shares w/o any pass. Just with guest acc enabled. – Yurij73 Feb 24 '13 at 19:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.