LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-22-2010, 01:52 PM   #1
bostonantifan
Member
 
Registered: May 2006
Location: Leominster, Massachusetts
Distribution: Kubuntu 10.04
Posts: 56

Rep: Reputation: 15
smbtree returns NT_STATUS_ACCESS_DENIED from Windows computers


I'm running a combination wireless/wired network with a Linksys router. I have 3 Windows XP machines, plus a MacBook Pro laptop that's running OS X Snow Leopard 10.6.3, and 3 virtual machines (Ubuntu 9.10, Kubuntu 9.10, and Windows XP Pro SP3) via Parlallels 5.0.

I'm new to configuring Samba on multiple machines. The Samba server on OS X works fine, as does the one on Ubuntu. The Kubuntu one, however keeps getting the following error:
Code:
smbtree returns NT_STATUS_ACCESS_DENIED from Windows computers
My smb.conf file for Kubuntu is:
Code:
peterv@MBP17K<686>$: nl smb.conf                                                                                                                                      
     1  [global]                                                                                                                                                      
     2      ; General server settings                                                                                                                                 
     3      netbios name = MBP17K                                                                                                                                     
     4      server string =                                                                                                                                           
     5      workgroup = HADEN                                                                                                                                         
     6      announce version = 5.0                                                                                                                                    
     7      socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192                                                                    
     8                                                                                                                                                                
     9      passdb backend = tdbsam                                                                                                                                   
    10      security = user                                                                                                                                           
    11      null passwords = true                                                                                                                                     
    12      username map = /etc/samba/smbusers                                                                                                                        
    13  :   name resolve order = hosts wins bcast                                                                                                                     
    14      name resolve order = lmhosts wins bcast host                                                                                                              
    15                                                                                                                                                                
    16      wins support = yes                                                                                                                                        
    17                                                                                                                                                                
    18      printing = CUPS                                                                                                                                           
    19      printcap name = CUPS                                                                                                                                      
    20                                                                                                                                                                
    21      syslog = 1                                                                                                                                                
    22      syslog only = yes                                                                                                                                         
    23                                                                                                                                                                
    24  [print$]
    25      path = /var/lib/samba/printers
    26      browseable = yes
    27      guest ok = yes
    28      read only = yes
    29      write list = root
    30      create mask = 0664
    31      directory mask = 0775
    32
    33  [printers]
    34      path = /tmp
    35      printable = yes
    36      guest ok = yes
    37      browseable = no
    38
    39  [Home]
    40      path = /home/peterv/
    41      browseable = yes
    42      read only = no
    43      guest ok = no
    44      create mask = 0644
    45      directory mask = 0755
    46      force user = peterv
    47      force group = peterv
    48
    49  [Perl]
    50      path = /home/peterv/perl
    51      browseable = yes
    52      read only = no
    53      guest ok = no
    54      create mask = 0644
    55      directory mask = 0755
    56      force user = peterv
    57      force group = peterv
The screen output from when I start samba:
Code:
peterv@MBP17K<684>$: start_samba                                                                                                                                      
 * Starting Samba 4 daemon samba                                                                                                                                      Unknown parameter encountered: "passdb backend"                                                                                                                       
Ignoring unknown parameter "passdb backend"
Unknown parameter encountered: "username map"
Ignoring unknown parameter "username map"
Unknown parameter encountered: "printing"
Ignoring unknown parameter "printing"
Unknown parameter encountered: "printcap name"
Ignoring unknown parameter "printcap name"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "syslog only"
Ignoring unknown parameter "syslog only"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "write list"
Ignoring unknown parameter "write list"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "force user"
Ignoring unknown parameter "force user"
Unknown parameter encountered: "force group"
Ignoring unknown parameter "force group"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "force user"
Ignoring unknown parameter "force user"
Unknown parameter encountered: "force group"
Ignoring unknown parameter "force group"
                                                                                                                                                               [ OK ]
root      3291  0.0  0.0  52524  1604 ?        Rs   14:36   0:00 /usr/sbin/samba -D
root      3292  0.0  0.0  52524  1572 ?        S    14:36   0:00 /usr/sbin/samba -D
peterv    3297  0.0  0.0   7336   900 pts/2    R+   14:36   0:00 grep -i samba
root      3298  0.0  0.0  52656  1576 ?        S    14:36   0:00 /usr/sbin/samba -D

Thu Apr 22 14:22:43 EDT 2010
/etc/samba ->
The command I run to start samba is:
Code:
alias start_samba="sudo /etc/init.d/samba start ; ps aux | grep -i 'samba'"
I don't understand why it shows 3 samba processes were started.

Output from testparm:
Code:
Thu Apr 22 14:22:43 EDT 2010
/etc/samba ->
peterv@MBP17K<689>$: findsmb

                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.1.100   MBP17         +[        HADEN         ]
192.168.1.105   MBP17U         [        HADEN         ]
192.168.1.109   MBP17K         [HADEN] [Unix] [Samba 4.0.0alpha9-GIT-27087e6]
192.168.1.109   MBP17K         [HADEN] [Unix] [Samba 4.0.0alpha9-GIT-27087e6]
192.168.1.109   MBP17K         [HADEN] [Unix] [Samba 4.0.0alpha9-GIT-27087e6]

Thu Apr 22 14:22:43 EDT 2010
/etc/samba ->
peterv@MBP17K<690>$:
This shows MBP17 - The OS X os, MBP17U - The Ubuntu os, and 3 instances of MBP17K - The Kubuntu os, there should only be one, and there should be one for SERVER2 - my Windows XP machine. (The other XP machines are offline right now.)

Output from smbtree:
Code:
peterv@MBP17K<690>$: smbtree
Enter peterv's password:
HADEN
        \\SERVER2
cli_start_connection: failed to connect to SERVER2<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
        \\MBP17U
cli_start_connection: failed to connect to MBP17U<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
        \\MBP17                         MBP17
cli_start_connection: failed to connect to MBP17<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED

Thu Apr 22 14:22:43 EDT 2010
/etc/samba ->
I've been working on this for days, but have made little headway. I noticed a similar post from a few years ago, but that didn't help, so I'm hoping the posters there will see this. Sorry for the long post, but I figured the more information, the better chance of getting some help.

I would greatly appreciate any assistance anyone can provide. I really need to get this working asap.
Thanks,
Peter V.
 
Old 04-22-2010, 05:04 PM   #2
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 529

Rep: Reputation: Disabled
You'd best have a mod move this to an appropriate forum.
Regards,
Bill
 
Old 04-22-2010, 05:20 PM   #3
bostonantifan
Member
 
Registered: May 2006
Location: Leominster, Massachusetts
Distribution: Kubuntu 10.04
Posts: 56

Original Poster
Rep: Reputation: 15
Just FYI,before I posted this here, I searched for similar posts. The one I found that was exactly the same problem is also posted in this forum. As for where it should be, I'm open to suggestions. Also, how does one contact a moderator to find out about where the post should be?
 
Old 04-22-2010, 05:53 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
This is from the "Report" button on posts - don't really know if it's the right way of doing things but it looks relevant:
Quote:
Note: This form is ONLY to be used to report spam, advertising messages, and problematic (harassment, fighting, or rude) posts or to request that your thread be moved to another forum. If you are trying to reply to a thread, click back and then use the "Reply" button.
 
Old 04-22-2010, 07:49 PM   #5
bostonantifan
Member
 
Registered: May 2006
Location: Leominster, Massachusetts
Distribution: Kubuntu 10.04
Posts: 56

Original Poster
Rep: Reputation: 15
BGeddy, thanks for the info. I've requested that this be moved to the Ubuntu forum.
 
Old 04-23-2010, 08:14 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
As requested - moved to Ubuntu
 
Old 02-06-2015, 01:40 PM   #7
KaFaraqGatri
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
Sometimes smb.conf has ZERO to do with it

Old thread, but this really needs to be posted. I've seen this problem off and on for five years and there are two big clues to solving it.
#1. There are lots of causes. There is no single fix for it. It is a pretty generic message. It sounds specific, but it's not much better than, "It didn't work".
#2. I HAVE SEEN MANY CASES OF THIS THAT HAD NOTHING TO DO WITH THE SAMBA CONFIG!!! Nada. Zero. All that editing is useless or counterproductive. I have found MANY cases where- I don't know if it's Samba or the router- there is confusion with systems that have both wireless and wired networking active at the same time. My laptop is a good example. Usually wireless, if I'm in reach of the router I usually plug it in. I don't know how, but that confuses everything. The fix: disable wireless networking on machines with both, then stop and start smbd on all the network machines. Voila! Now everything magically sees everyone's shares. (And after verifying that, you can re-enable wireless and it all still works).

It really makes me fume to think how many hours have been spent with people editing smb.conf when that wasn't the problem at all but what's probably one line of stupid code somewhere. Those that run Windoze are used to that, but that's not supposed to be the experience in the Linux world. I hope this saves a few some effort.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where is smbtree? AlaskanWolf DamnSmallLinux 1 12-03-2007 05:48 PM
Two computers to one printer,one of them windows and one Puppy Linux and Windows 2000 birdbrained Linux - Newbie 1 11-09-2007 12:29 PM
smbtree does not display myself Ygrex Linux - Networking 0 10-30-2005 06:54 AM
smbtree problem bruse Linux - Networking 3 03-28-2005 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration