Samba: Can't get browsing to work :-( :-( :-(

Samba: Can't get browsing to work :-( :-( :-(

Post by Frampton Steve » Fri, 21 Feb 1997 04:00:00



Hello!

I have posted this in the past, and received some advice for it.  But
everything I have tried hasn't worked.  Therefore I am posting it again,
in the hopes that somebody who has gone through the same thing can give me
advice on what the problem is.

I have *never* been able to get browsing to work, no matter what I have
tried.  I *am* able to directly connect to my home directory from
WfW/95/NT because I have configured my home directory accordingly.  It's
just, whenever I try browsing, from *any* source (smbclient, or a
WfW/95/NT client), I get access denied.

I *have* ensured that my 'guest' account is a valid account in the
/etc/passwd file.  In fact, I have tried changing in it the passwd
file to have a null password, with a valid directory and shell (bash).
I've also tried to changing the account name, but browsing always produces
the same sorts of results in the log files.

I am using Samba 1.9.15p6, but I've seen this behavior with previous
released.  I'm using Linux 2.0.28 but again, earlier kernels seem to
produce the same results.

Here is a sample error message from smbclient:

mayuko:/usr/local/samba/bin$ smbclient -L sugar
Server time is Mon Feb  3 22:53:23 1997
Timezone is UTC-5.0
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 1.9.15p6]
SMBtconX failed. ERRSRV - ERRbadpw (Bad password - name/password pair in a
Tree Connect or Session Setup are invalid.)
Perhaps you are using the wrong sharename, username or password?
Some servers insist that these be in uppercase

Okay...then I check the SMB logs.  The results *always* look something
like this:

Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [MICROSOFT NETWORKS 1.03]
Requested protocol [MICROSOFT NETWORKS 3.0]
Requested protocol [LANMAN1.0]
Requested protocol [LM1.2X002]
Requested protocol [Samba]
Selected protocol NT LANMAN 1.0
rejected invalid user guest
Closing connections

Or:

Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [MICROSOFT NETWORKS 1.03]
Requested protocol [MICROSOFT NETWORKS 3.0]
Requested protocol [LANMAN1.0]
Requested protocol [LM1.2X002]
Requested protocol [Samba]
Selected protocol NT LANMAN 1.0
rejected invalid user guest
02/03/97 22:53:23 invalid username/password for ipc$
Closing connections

Here is my smb.conf file.  It looks okay, doesn't it?

Here is the section of the /etc/passwd file:

guest:*:405:100:guest:/dev/null:/dev/null

(Also have tried)

guest::405:100:guest:/dev/null:/dev/null
and
guest:*:405:100:guest:Guest Account:/bin/bash

--- begin config ---
[global]
     dead time = 10
     invalid users = root
     guest account = guest
     log file = /usr/local/samba/logs/log.%m
     max log size = 1000
     password level = 2
     browseable = yes
     status = yes
     debug level = 2
     only user = true
     message command = /bin/mail -s 'Message from %f on %m' frampton < %s; rm %s &
     read prediction = true
     auto services = cdrom

[homes]
     comment = Home Directories
     user = %S
     path = /home/%S
     writeable = no
     read only = true
     browseable = no

[frampton]
     user = frampton
     path = /home/frampton
     preexec = /usr/games/fortune | /usr/local/samba/bin/smbclient -M %m -I %I' &
     writeable = yes
     public = no
     browseable = no

[printers]
     user = guest
     path = /usr/spool/public
     writeable = no
     public = yes
     printable = yes

[cdrom]
     user = guest
     comment = Shared CD-ROM drive on Linux
     path = /cdrom
     writeable = no
     read only = true
     browseable = yes
     public = yes
     guest ok = yes

[WhoAmI]
   comment = You're connecting as "%U".
   browseable = yes
   path = /tmp
   writable = no
   guest ok = yes
   preexec = /usr/local/bin/WhoAmI '%u' '%m' '%I' '%h' '%L' '%M' '%a' '%T' '%U' &
--- end config ---

Okay...here's some output with 'testparm':

--- begin 'testparm' output
Load smb config files from /usr/local/samba/lib/smb.conf
Processing configuration file "/usr/local/samba/lib/smb.conf"
Processing section "[homes]"
Processing section "[frampton]"
Processing section "[printers]"
Processing section "[cdrom]"
Processing section "[WhoAmI]"
Loaded services file OK.
Press enter to see a dump of your service definitions
Global parameters:
        debuglevel: 2
        syslog: 1
        syslog only: No
        protocol: 5
        security: 0
        printing: 0
        max disk size: 0
        lpq cache time: 10
        encrypt passwords: No
        getwd cache: Yes
        read prediction: Yes
        read bmpx: Yes
        read raw: Yes
        write raw: Yes
        use rhosts: No
        load printers: Yes
        null passwords: No
        strip dot: No
        password server:
        socket options:
        smbrun: /usr/local/samba/bin/smbrun
        log file: /usr/local/samba/logs/log.%m
        config file:
        smb passwd file:
        hosts equiv:
        preload: cdrom
        server string: Samba 1.9.15p6
        printcap name: /etc/printcap
        lock dir: /usr/local/samba/var/locks
        root directory: /
        default service:
        message command: /bin/mail -s 'Message from %f on %m' frampton < %s; rm %s &
        dfree command:
        passwd program: /bin/passwd
        passwd chat: *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*
        valid chars:
        workgroup: WORKGROUP
        domain controller:
        username map:
        character set:
        max log size: 1000
        mangled stack: 50
        max mux: 2
        max xmit: 65535
        max packet: 65535
        password level: 2
        keepalive: 0
        deadtime: 10
        time offset: 0
        read size: 16384
        os level: 0
        max ttl: 14400
        preferred master: Yes
        domain master: No
        browse list: Yes

Default service parameters:
        comment:
        copy:
        include:
        exec:
        postexec:
        root preexec:
        root postexec:
        alternate permissions: No
        revalidate: No
        default case: 0
        case sensitive: No
        preserve case: No
        short preserve case: No
        mangle case: No
        mangling char: ~
        browseable: Yes
        available: Yes
        path:
        username:
        guest account: guest
        invalid users: root
        valid users:
        admin users:
        read list:
        write list:
        volume:
        force user:
        force group:
        read only: Yes
        max connections: 0
        min print space: 0
        create mask: 0755
        set directory: No
        status: Yes
        hide dot files: Yes
        guest only: No
        guest ok: No
        print ok: No
        postscript: No
        map system: No
        map hidden: No
        map archive: Yes
        locking: Yes
        strict locking: No
        share modes: Yes
        only user: Yes
        wide links: Yes
        sync always: No
        mangled names: Yes
        print command: lpr -r -P%p %s
        lpq command: lpq -P%p
        lprm command: lprm -P%p %j
        lppause command:
        lpresume command:
        printer:
        hosts allow:
        hosts deny:
        dont descend:
        magic script:
        magic output:
        mangled map:

Service parameters [homes]:
        comment: Home Directories
        browseable: No
        path: /home/%S
        username: %S

Service parameters [frampton]:
        exec: /usr/games/fortune | /usr/local/samba/bin/smbclient -M %m -I %I' &
        browseable: No
        path: /home/frampton
        username: frampton
        read only: No

Service parameters [printers]:
        path: /usr/spool/public
        username: guest
        guest ok: Yes
        print ok: Yes

Service parameters [cdrom]:
        comment: Shared CD-ROM drive on Linux
        path: /cdrom
        username: guest
        guest ok: Yes

Service parameters [WhoAmI]:
        comment: You're connecting as "%U".
        exec: /usr/local/bin/WhoAmI '%u' '%m' '%I' '%h' '%L' '%M' '%a' '%T' '%U' &
        path: /tmp
        guest ok: Yes

Service parameters [lp]:
        path: /usr/spool/public
        username: guest
        guest ok: Yes
        print ok: Yes
        printer: lp

Service parameters [IPC$]:
        comment: IPC Service (Samba 1.9.15p6)
        path: /tmp
        status: No
        guest ok: Yes
--- end 'testparm' output ---

Any ideas?  :-)

---------------< LINUX: The choice of a GNU generation. >---------------
Steve Frampton                           http://qlink.queensu.ca/~3srf
Work: <framp...@mail.flarc.edu.on.ca>    School: <3...@qlink.queensu.ca>
--< NOTICE!  I do not accept unsolicited commercial e-mail messages! >--

 
 
 

Samba: Can't get browsing to work :-( :-( :-(

Post by bruc » Sat, 22 Feb 1997 04:00:00




Quote:> I have *never* been able to get browsing to work, no matter what I have
> tried.  I *am* able to directly connect to my home directory from
> WfW/95/NT because I have configured my home directory accordingly.  It's
> just, whenever I try browsing, from *any* source (smbclient, or a
> WfW/95/NT client), I get access denied.

  ... and later on ...

Quote:> I am using Samba 1.9.15p6, but I've seen this behavior with previous
> released.  I'm using Linux 2.0.28 but again, earlier kernels seem to
> produce the same results.

Steve,

I've seen this behavior with this release (1.9.15p8, actually) but have not
seen it with 1.9.16p10.  I have other difficulties with 16p10, but not with
browsing.  In fact, with 15p8, it varied from workstation to workstation (PC,
that is) whether or not browsing would work.  The 'simpler' systems generally
worked, and the 'more sophisticated' didn't.  I haven't tried throwing more
memory at the problem, but it might be worth a shot ... getting 1.9.16p10 might
do the trick as well.

Bruce

--
------------------------------------------------------------------------------


Systems Integration Group:: LANDLINE:    vox: 410/403-2390   fax: 410/329-1114
------------------------------------------------------------------------------
Insight Distribution Systems -- 222 Schilling Circle -- Hunt Valley, MD  21031

 
 
 

Samba: Can't get browsing to work :-( :-( :-(

Post by Colin Smi » Tue, 25 Feb 1997 04:00:00




|> > I have *never* been able to get browsing to work, no matter what I have
|> > tried.  I *am* able to directly connect to my home directory from
|> > WfW/95/NT because I have configured my home directory accordingly.  It's
|> > just, whenever I try browsing, from *any* source (smbclient, or a
|> > WfW/95/NT client), I get access denied.
|>
|>   ... and later on ...

Do you have a guest account on the server? Is the smb.conf set up for that
guest account? Browsing is done as the guest account.

Do you have all the machines pointing at the same wins server?
Do you have the samba server pointing at the wins server?

--
Archeus Free FRPG - http://www.geocities.com/Area51/3002/

My opinions are completely my own, bought and paid for.

 
 
 

Samba: Can't get browsing to work :-( :-( :-(

Post by Frampton Steve » Wed, 26 Feb 1997 04:00:00



: > I have *never* been able to get browsing to work, no matter what I have
: > tried.  I *am* able to directly connect to my home directory from
: > WfW/95/NT because I have configured my home directory accordingly.  It's
: > just, whenever I try browsing, from *any* source (smbclient, or a
: > WfW/95/NT client), I get access denied.
:
: Do you have a guest account on the server? Is the smb.conf set up for that
: guest account? Browsing is done as the guest account.

I finally figured this one out.  All suggestions received checked out
fine.  But this evening I noticed an entry "only user = true" in the
[Global] section.  I took this out, and *poof* I could see the machine
names come up.  But browsing still wouldn't work.  I then set the password
level to 3 (it was 2) and now everything is working great.

...and it's already time to upgrade again.  :-)

Thanks to all who responded.

---------------< LINUX: The choice of a GNU generation. >---------------
Steve Frampton                           http://qlink.queensu.ca/~3srf

--< NOTICE!  I do not accept unsolicited commercial e-mail messages! >--

 
 
 

1. gcc hugeprogram.c -o hugeprogram.c :-( :-( :-(

I just did something really dumb.

I was getting to the end of a marathon debugging session, like seriously 8
or 9 hours. I kept editing, recompiling, running; editing recompiling
running... I must have been getting tired, because I typed this:

gcc hugeprogram.c -o hugeprogram.c

Jeez - shouldn't a compiler warn you if you try to write over your source
code?!

Anyway, just to make sure, there's no magic trick for recovering source
code from gcc-compiled code, is there?

I was doing all my work in a unix window, and found scraps of the program
in the scroll-back buffer, but can't think of anything else to try.

I never use emoticons, but right now I am really bummed :-(

2. Best way to learn

3. :-( undocumented option :-( mail.local -l

4. TTY Timeouts ?

5. Problem :-(((((( Help me please:-(((

6. make: not found

7. problem to browse the LAN with konqueror :-((

8. New tool for testing X applications

9. My ipfwadm doesn't work anymore :-(

10. Xwindows still doesn't work :-(

11. PPP doesn't work under 2.0.26 anymore :-(

12. NTFS/HPFS install bug not fixed yet...updated install disks still don't work:-(

13. Modem Won't Work :-(