LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2011, 01:48 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
smbclient nt_status_access_denied


Hi, I am trying to use linux to access a shared folder on a windows computer, via smbclient. I can access that share anywhere from my other windows computer, but not able to access it from smbclient:
Code:
sh-3.1# smbclient "\\\\TED-PC\\My Documents" -N
Anonymous login successful
Domain=[Workgroup] OS=[Windows 7 Professional 7600] Server=[Windows 7 Professional 6.1]
tree connect failed: NT_STATUS_ACCESS_DENIED
I remember I was able to do it before with no problems at all. I didn't change any settings, but it's not working now
Thanks,
Ted
 
Old 10-25-2011, 07:02 PM   #2
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Did you upgrade anything? I assume this is Debian is that correct? Post your smb.conf please.

Last edited by AuroraZero; 10-25-2011 at 07:04 PM.
 
Old 10-25-2011, 11:27 PM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
HI, thanks for your reply, I don't think that I have upgraded or changed anything. Or it could be myself, I forgot the commands precisely, probably a little varibles differed that caused it not to work anymore.
Thanks,
 
Old 10-26-2011, 11:44 AM   #4
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Post your smb.conf please.
 
Old 10-27-2011, 07:36 PM   #5
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
HI, thanks for your reply, here it is:
Code:
# cat /etc/smb.conf
#======================= Global Settings =====================================
[global]
netbios name = NAS
server string = NAS
smb passwd file = /etc/smbpasswd
security = SHARE
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
interfaces = eth0 192.168.2.101/24
bind interfaces only = yes
browseable = yes
dns proxy = no
name resolve order = wins hosts lmhosts
log file = /var/smb
max log size = 5
printcap name = /dev/null
load printers = no
printing = bsd
#============================ Share Definitions ==============================

[root]
comment = root
path = /usb
writeable = yes

[main]
comment = main
path = /usb/sdb1
writeable = yes
Ted
 
Old 10-27-2011, 07:59 PM   #6
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Type testparm in a terminal windows and see what it says. I have a feeling you will be needing the netbios name of the computer you are trying to connect to. I know my configuration does.
 
Old 10-27-2011, 10:09 PM   #7
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
HI, thanks again;
Code:
# /etc/chroot.sh
sh-3.1# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[root]"
Processing section "[main]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        server string = %h server
        interfaces = eth0, 192.168.2.101/24
        bind interfaces only = Yes
        security = SHARE
        obey pam restrictions = Yes
        passdb backend = tdbsam
        guest account = ftp
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        name resolve order = lmhosts host wins bcast
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        force user = root
        force group = root
        guest ok = Yes
        hosts allow = localhost, 192.168.

[root]
        comment = root
        path = /mnt
        read only = No

[main]
        comment = main
        path = /mnt/sda1
        read only = No
 
Old 10-27-2011, 10:19 PM   #8
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Hi, some new stuff i have found, the smbclient works perfectly fine with the xp but not the win 7. eg:
Code:
$smbclient \\\\LAPTOP\\Downloads\\ -N
Domain=[LAPTOP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb :\>
$smbclient \\\\TED-PC\\Desktop\\ -N
Anonymous login successful
Domain=[Workgroup] OS=[Windows 7 Professional 7600] Server=[Windows 7 Professional 6.1]
tree connect failed: NT_STATUS_ACCESS_DENIED
could it just be the windows version or some settings that I must change on my desktop win 7?
Thanks,
Ted

Last edited by ted_chou12; 10-27-2011 at 10:20 PM.
 
Old 10-28-2011, 04:12 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
FYI smb.conf is only used for the server side i.e. windows connecting to a linux computer.

Most likely a windows 7 thing. Could be due to Windows live Essentials bug or windows 7 not liking anonymous login. If live essentials is installed try removing it. It might also help if you disable SMB2.
 
1 members found this post helpful.
Old 11-06-2011, 05:38 PM   #10
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Quote:
Originally Posted by michaelk View Post
FYI smb.conf is only used for the server side i.e. windows connecting to a linux computer.

Most likely a windows 7 thing. Could be due to Windows live Essentials bug or windows 7 not liking anonymous login. If live essentials is installed try removing it. It might also help if you disable SMB2.
It is the problem of win live essential, you can't use even the messenger. Meanwhile stupid ms techs force you to use the newest windows live messenger which comes with the essential. I am trying to adapting to Trillian (another IM) instead of windows live. Yes, MS really suck.
Thanks,
Ted
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbtree returns NT_STATUS_ACCESS_DENIED from Windows computers SwissHeritage Slackware 10 03-31-2009 01:40 AM
Samba & ldap NT_STATUS_ACCESS_DENIED hashim.km Linux - Software 1 11-19-2008 08:11 AM
Nt_status_access_denied Pooh Linux - Software 2 08-12-2006 02:10 AM
Nt_status_access_denied ELEGANCE Linux - Networking 3 05-26-2006 03:47 PM
samba: NT_STATUS_ACCESS_DENIED linjia Linux - Networking 1 11-26-2004 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration