Question

Solaris Samba Config

Asked by: neitzen


I am trying to configure Samba on Solaris.  Currently I am having a problem getting the shares listed by IP or NETBIOSNAME

Here is the current smb.conf file

# more ../lib/smb.conf
[global]
   workgroup = SGROUP
   netbios name = SNETBIOS
   hosts allow = all
   remote announce = 210.82.38.248/SGROUP
   name resolve order = hosts lmhosts wins bcast
   log level = 3

[home]
   path = /home/neitzen
   browseable = yes
   guest ok = yes
   read only = yes


The LOCALHOST smbclient works

# smbclient -L localhost
added interface ip=210.82.38.132 bcast=210.82.38.135 nmask=255.255.255.248
Password:
Domain=[SGROUP] OS=[Unix] Server=[Samba 2.2.7a]

        Sharename      Type      Comment
        ---------      ----      -------
        home           Disk
        IPC$           IPC       IPC Service (Samba 2.2.7a)
        ADMIN$         Disk      IPC Service (Samba 2.2.7a)

        Server               Comment
        ---------            -------
        SNETBIOS             Samba 2.2.7a

        Workgroup            Master
        ---------            -------
        SGROUP

But listing by IP does not:

# ./smbclient -L 210.82.38.132
added interface ip=210.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
session request to 210.82.38.132 failed (Called name not present)
session request to 210 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)

 ./smbclient -L \\SGROUP\home -I 210.82.38.132
added interface ip=210.82.38.132 bcast=210.82.38.135 nmask=255.255.255.248
session request to SGROUPHOME failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)

# ./smbclient -L SGROUP -I 210.82.38.132
added interface ip=210.82.38.132 bcast=210.82.38.135 nmask=255.255.255.248
session request to SGROUP failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)

# ./smbclient -L SNETBIOS -I 210.82.38.132
added interface ip=210.82.38.132 bcast=210.82.38.135 nmask=255.255.255.248
session request to SNETBIOS failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)

# ./smbclient -L 210.82.38.132 -I 210.82.38.132
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
session request to 209.82.38.132 failed (Called name not present)
session request to 209 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)

Nothing seems to work here..

Here is some TCPDUMP info

# tcpdump -ln -vv host 210.82.38.132 | tee tcpdump.samba
tcpdump: Command not found.
# /usr/local/sbin/tcpdump -ln -vv host 210.82.38.132 | tee tcpdump.samba
tcpdump: listening on hme0, capture size 68 bytes
17:02:17.636091 IP (tos 0x10, ttl 255, length: 148) 210.82.38.132.22 > 210.82.38.130.45808: P 1652950865:1652950961(96) ack 2674673014 win 10136 <nop,nop,timestamp 112681402 148055631> (DF)
17:02:17.636621 IP (tos 0x10, ttl 63, length: 52) 210.82.38.130.45808 > 210.82.38.132.22: . [tcp sum ok] 1:1(0) ack 96 win 63616 <nop,nop,timestamp 148055633 112681402> (DF)
17:02:17.675127 IP (tos 0x8, ttl 255, length: 104) 210.82.38.132.35856 > 195.141.201.130.2468: P 52574001:52574065(64) ack 2842441371 win 8760 (DF)

# /usr/local/samba/bin/nmblookup -B 210.82.38.132 __SAMBA__
querying __SAMBA__ on 210.82.38.132
210.82.38.132 __SAMBA__<00>

Any help would be greatly appreciated...

- N.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-01-30 at 14:07:29ID20490140
Tags

solaris

,

samba

Topics

Unix Networking

,

Sun JDS

Participating Experts
3
Points
100
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. samba
    How can I connect NT Workstation to a samba server running on FreeBSD ? Andrew
  2. Samba Solaris 2.7
    Hi in linux you can mount a windows partition by the smbmount command. How can i do this in solaris ? can i use the smbclient .. I reealy need this ... //Abbe
  3. Samba Solaris 9 error
    I cannot got samba to start on my solaris 9 box. I've used the 'pkg-get install samba-3.0.2a' command, I've installed it from source.... but for some reason it just won't start. I'm somewhat new to solaris btw. I get this error from webmin. Failed to start Samba servers : /...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mbarbosPosted on 2003-02-03 at 03:34:17ID: 7867172

Take out the following 2 lines

remote announce = 210.82.38.248/SGROUP
name resolve order = hosts lmhosts wins bcast

And then try ./smbclient -L SNETBIOS -d4 -U <username>

And post the result

 

by: neitzenPosted on 2003-02-05 at 08:00:17ID: 7883365


I have taken the lines out as well as added a few lines.  Still no go.  I have changed the domain name to OANDA and the netbiosname to SYRINX for reference.  Please review the following

Thanks in advance,
- N.

# smbclient -L localhost
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
Password:
Domain=[OANDA] OS=[Unix] Server=[Samba 2.2.7a]

        Sharename      Type      Comment
        ---------      ----      -------
        backup         Disk
        IPC$           IPC       IPC Service (Samba 2.2.7a)
        ADMIN$         Disk      IPC Service (Samba 2.2.7a)

        Server               Comment
        ---------            -------
        SYRINX               Samba 2.2.7a

        Workgroup            Master
        ---------            -------
        OANDA

# smbclient -L syrinx -U root -d 4
Serverzone is 18000
Initialising global parameters
params.c:pm_process() - Processing configuration file "/usr/local/samba/lib/smb.conf"
Processing section "[global]"
doing parameter workgroup = OANDA
doing parameter netbios name = syrinx
handle_netbios_name: set global_myname to: SYRINX
doing parameter security = DOMAIN
doing parameter encrypt passwords = Yes
doing parameter update encrypted = Yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = No
doing parameter hosts allow = all
doing parameter log level = 3
doing parameter remote browse sync = 209.82.38.132 209.82.38.130
pm_process() returned Yes
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
Client started (version 2.2.7a).
resolve_lmhosts: Attempting lmhosts lookup for name syrinx<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
getlmhostsent: lmhost entry: 209.82.38.132 syrinx
Connecting to 209.82.38.132 at port 139
session request to SYRINX failed (Called name not present)
resolve_lmhosts: Attempting lmhosts lookup for name syrinx<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
getlmhostsent: lmhost entry: 209.82.38.132 syrinx
Connecting to 209.82.38.132 at port 139
session request to *SMBSERVER failed (Called name not present)

# more /etc/samba/smb.conf
[global]
   workgroup = OANDA
   netbios name = syrinx
   security = DOMAIN
   encrypt passwords = Yes
   update encrypted = Yes
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = No
   hosts allow = all
   log level = 3
   remote browse sync = 209.82.38.132 209.82.38.130

[backup]
   path = /home/neitzen
   browseable = yes
   guest ok = yes
   read only = yes

# more /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost
209.82.38.132   syrinx

# more /etc/lmhosts
127.0.0.1 localhost
209.82.38.132 syrinx

 

by: mbarbosPosted on 2003-02-05 at 08:45:37ID: 7883653

Can you please take out also:

remote browse sync = 209.82.38.132 209.82.38.130
move the lmhosts (I suppose it's /usr/local/samba/lib/lmhosts) in a different place (where samba won't find it)

 

by: neitzenPosted on 2003-02-05 at 09:14:06ID: 7883847

ok here is the update...still no good

the whole remote browse sync line was so I could (hope?) to access it from 209.82.38.130



# smbclient -L syrinx -U root -d 4
Serverzone is 18000
Initialising global parameters
params.c:pm_process() - Processing configuration file "/usr/local/samba/lib/smb.conf"
Processing section "[global]"
doing parameter workgroup = OANDA
doing parameter netbios name = syrinx
handle_netbios_name: set global_myname to: SYRINX
doing parameter security = DOMAIN
doing parameter encrypt passwords = Yes
doing parameter update encrypted = Yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = No
doing parameter hosts allow = all
doing parameter log level = 3
pm_process() returned Yes
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
Client started (version 2.2.7a).
resolve_lmhosts: Attempting lmhosts lookup for name syrinx<0x20>
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory
resolve_hosts: Attempting host lookup for name syrinx<0x20>
Connecting to 209.82.38.132 at port 139
session request to SYRINX failed (Called name not present)
resolve_lmhosts: Attempting lmhosts lookup for name syrinx<0x20>
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory
resolve_hosts: Attempting host lookup for name syrinx<0x20>
Connecting to 209.82.38.132 at port 139
session request to *SMBSERVER failed (Called name not present)

 

by: mbarbosPosted on 2003-02-05 at 09:30:27ID: 7884048

No, remote browse sync is used to collate the browsing list with another nmbd server in different network.

Did you add root as a smb user ?
Also add another share to a world accesible directory, like /tmp

What does smbstatus say ?

Also what do the logfiles (log.smbd, log.nmbd) say.
All this looks like there is a samba but nothing is shared.

 

by: mbarbosPosted on 2003-02-05 at 09:35:12ID: 7884117

This actaully looks like the samba server does not have services available for clients

 

by: neitzenPosted on 2003-02-05 at 09:55:42ID: 7884483

Root is an smb user :

# smbclient -L localhost -U root
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
Password:
Domain=[OANDA] OS=[Unix] Server=[Samba 2.2.7a]

        Sharename      Type      Comment
        ---------      ----      -------
        backup         Disk
        tmp            Disk
        IPC$           IPC       IPC Service (Samba 2.2.7a)
        ADMIN$         Disk      IPC Service (Samba 2.2.7a)

        Server               Comment
        ---------            -------
        SYRINX               Samba 2.2.7a

        Workgroup            Master
        ---------            -------
        OANDA                SYRINX

I have now added /tmp

The log files do not have any entries when using the "-L syrinx -U root " but they do for "-L localhost"  I don't think the good entries will help...


# /usr/local/samba/bin/smbstatus

Samba version 2.2.7a
Service      uid      gid      pid     machine
----------------------------------------------

No locked files

# smbclient -L localhost
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
Password:
Domain=[OANDA] OS=[Unix] Server=[Samba 2.2.7a]

        Sharename      Type      Comment
        ---------      ----      -------
        backup         Disk
        tmp            Disk
        IPC$           IPC       IPC Service (Samba 2.2.7a)
        ADMIN$         Disk      IPC Service (Samba 2.2.7a)

        Server               Comment
        ---------            -------
        SYRINX               Samba 2.2.7a

        Workgroup            Master
        ---------            -------
        OANDA                SYRINX
# smbclient -L syrinx
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
session request to SYRINX failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
# smbclient -L syrinx -U root -d 4
Serverzone is 18000
Initialising global parameters
params.c:pm_process() - Processing configuration file "/usr/local/samba/lib/smb.conf"
Processing section "[global]"
doing parameter workgroup = OANDA
doing parameter netbios name = syrinx
handle_netbios_name: set global_myname to: SYRINX
doing parameter security = DOMAIN
doing parameter encrypt passwords = Yes
doing parameter update encrypted = Yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = No
doing parameter hosts allow = all
doing parameter log level = 3
pm_process() returned Yes
added interface ip=209.82.38.132 bcast=209.82.38.135 nmask=255.255.255.248
Client started (version 2.2.7a).
resolve_lmhosts: Attempting lmhosts lookup for name syrinx<0x20>
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory
resolve_hosts: Attempting host lookup for name syrinx<0x20>
Connecting to 209.82.38.132 at port 139
session request to SYRINX failed (Called name not present)
resolve_lmhosts: Attempting lmhosts lookup for name syrinx<0x20>
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory
resolve_hosts: Attempting host lookup for name syrinx<0x20>
Connecting to 209.82.38.132 at port 139
session request to *SMBSERVER failed (Called name not present)

# more /usr/local/samba/lib/smb.conf
[global]
   workgroup = OANDA
   netbios name = syrinx
   security = DOMAIN
   encrypt passwords = Yes
   update encrypted = Yes
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = No
   hosts allow = all
   log level = 3
   #remote browse sync = 209.82.38.132 209.82.38.130

[backup]
   path = /home/neitzen
   browseable = yes
   guest ok = yes
   read only = yes

[tmp]
   path = /tmp
   browsable = yes
   guest ok = yes
   read only = yes

 

by: mbarbosPosted on 2003-02-05 at 15:11:25ID: 7886701

I don't have a samba server that I could use for some tests right now, but I'll build one in the morning.

Meanwhile try to run
smbpasswd -S
and let's see the result.
How dis you install samba on this machine ?

 

by: mbarbosPosted on 2003-02-05 at 15:13:35ID: 7886728

There is nothing in the log.nmbd file when you try to connect to syrinx ?

 

by: neitzenPosted on 2003-02-06 at 06:26:33ID: 7892044

Here are some updates

# /usr/local/samba/bin/smbpasswd -S
Unable to find the domain controller for domain OANDA.

As for the install it was the following

# cd /usr/local/
# tar xfvz samba-2.2.7a.tar.gz
# cd samba-2.2.7a/source
# ./configure
# make
# make install

edited /usr/local/samba/lib/smb.conf, added the stuff to /etc/init.d and that was it.

 

by: mbarbosPosted on 2003-02-06 at 06:52:00ID: 7892254

Are there the 2 daemons running (smbd and nmbd) ?
If yes, if look into the log files do they bing to the proper IP address ?

Here is a smb.conf that works for me for samba 2.2.7a on solaris 8, compiled with gcc 3.2.0:

        workgroup = TSTDOM
        netbios name = TSTSRVR
        server string = Samba Server
        interfaces = 192.168.0.1/24 127.0.0.1/8
        encrypt passwords = Yes
        update encrypted = Yes
        log level = 2
        load printers = No
        disable spoolss = Yes
        domain admin group = root
        logon path = \\TSTSRVR\%$(username)\profile
        logon drive = h:
        logon home = \\TSTSRVR\%$(username)
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        template homedir = /export/home/%U
        printer admin = root
        use client driver = Yes

[netlogon]
        path = /usr/local/samba/lib/netlogon
        write list = ntadmin root admin

[homes]
        path = /home/%u
        read only = No
        create mask = 0700
        directory mask = 0700
        force directory mode = 0700
        browseable = No

[Temp]
        comment = Temporay directory
        path = /tmp
        read only = No

_BUT_ I had problems with samba 2.2.7 compiled on a solaris machine. I have 2 samba servers and the binaries compiled on one machine behave strange (just slightly strange - the server was losing its own SID). The binaries compiled on the other machine worked OK. The differences between the 2 machines were very small, just a different patch cluster long time ago when ssl and cups were compiled.

One ideea could be that you try to download the precompiled binaries from www.sunfreeware.com and try again with those binaries.

 

by: CleanupPingPosted on 2003-08-15 at 05:11:27ID: 9157112

neitzen:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

 

by: mfitchPosted on 2005-04-12 at 11:23:50ID: 13765519

we use SAMBA with TeamSite - and user authentication  (UNIX id/passwords) on Solaris.
Interwoven has rev'ved samba with their release 6.5.
We hack the registry to send the passwords in plain text
and with migrating from version 2.2.8 to version 3.0.4 we have
to add a new line to the global parameters:
encrypt passwords=no to get it to work.

(I think that the default behavior in 3.0 changed)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...