Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
show 1 more comment

4 Answers

Please show us errors in these logs: /var/log/secure & /var/log/samba Also you can show iptables open ports.

share|improve this answer
add comment

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.