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 - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2007, 11:53 PM   #1
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Rep: Reputation: 15
Unable to configure Samba on Solaris


Problem:
Trying to access shares in Solaris box from Windows XP.
(Run > "\\<ip-addr>" )

What I did:

Downloaded Samba version 2.2.12 from www.samba.org and installed it as follows,

How I installed:

Code:
# cd /samba/source
# chmod 777 *
# ./configure
# make
# make install
# cat /usr/local/samba/lib/smb.conf
#Global parameters
[global]
        workgroup = MYGROUP

[share]
        path = /space/hotswap
        guest ok = yes
        read only = no

[test]
        path = /space/test
        guest ok = yes
        read only = no
# cat startsmb
#!/bin/sh
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D
# startsmb
# ps -ef|grep nmbd*
    root 25724     1  0 09:19:40 ?        0:00 /usr/local/samba/bin/nmbd -D
    root 26202 25606  0 10:05:06 pts/1    0:00 grep nmbd*
# ps -ef|grep smbd*
    root 26204 25606  0 10:05:11 pts/1    0:00 grep smbd*
# smbclient -L bluemoon
added interface ip=10.145.13.227 bcast=10.145.13.255 nmask=255.255.255.0
session request to BLUEMOON failed (Call returned zero bytes (EOF)
)
session request to *SMBSERVER failed (Call returned zero bytes (EOF)
)
It looks like nmbd is working fine but smbd fails to start. Can anyone trace out the problem.
 
Old 09-26-2007, 01:59 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should check samba logs (and especially smbd logfile) for errors.
Why don't you use the samba package from sunfreeware that's already precompiled and configured for your Solaris version?

Regards
 
Old 10-08-2007, 02:25 AM   #3
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Original Poster
Rep: Reputation: 15
This is what the log.samba has to show.
[2007/10/08 12:30:01, 0] smbd/server.c:main(944)
smbd version 3.0.26a started.
Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/10/08 12:30:01, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
[2007/10/08 12:30:01, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
[2007/10/08 12:30:01, 0] lib/util_sock.c:open_socket_in(830)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

Last edited by pranavojha; 10-08-2007 at 02:27 AM.
 
Old 10-08-2007, 03:05 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
[2007/10/08 12:30:01, 0] smbd/server.c:main(944)
smbd version 3.0.26a started.
From the aboveit seems that smbd is starting, but then
Quote:
[2007/10/08 12:30:01, 0] lib/util_sock.cpen_socket_in(830)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
it aborts since there is already something listening on port 139. To find out what listens on port 139 you can run:
Code:
netstat -an |grep 139
Another thing I've noticed is that you said you've installed samba 2.2.12, but from the logs it is samba 3.0.26a that is trying to start.

Last edited by bathory; 10-08-2007 at 03:10 AM.
 
Old 10-19-2007, 07:57 AM   #5
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Original Poster
Rep: Reputation: 15
Yup!! You are right, I had tried to install another version of Samba previously and its entry was still there in inet.conf and services file. I deleted those entries, uninstalled samba and reinstalled it, but still not able to configure the Samba server. log.smbd shows the following,
Code:

root@bluemoon # cat log.smbd
[2007/10/19 17:52:38, 0] smbd/server.c:main(944)
  smbd version 3.0.26a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
[2007/10/19 17:52:38, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2007/10/19 17:52:38, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length),
 returning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), re
turning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to ch
ange password), returning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age)
, returning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age)
, returning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), re
turning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes),
 returning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt),
 returning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), ret
urning 0
[2007/10/19 17:52:38, 1] lib/account_pol.c:account_policy_get(286)
  account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine passw
ord change), returning 0
[2007/10/19 17:52:38, 0] auth/auth_util.c:create_builtin_administrators(792)
  create_builtin_administrators: Failed to create Administrators
[2007/10/19 17:52:38, 0] auth/auth_util.c:create_builtin_users(758)
  create_builtin_users: Failed to create Users
[2007/10/19 17:52:38, 0] lib/util_sock.c:open_socket_in(830)
  bind failed on port 139 socket_addr = 0.0.0.0.
  Error = Address already in use
I installed samba 3.0.26a this time but when i try to access the solaris server from Windows (Run > \\<ip-addr>) it shows an error message saying "Network path was not found". Please let me know if my smb.conf file is a problem?
Code:

[global]
        dns proxy = yes
        netbios name = SERVER
        hosts allow = 10.14.
        public = yes

# shares
[Share]
        comment = Share
        path = /share
        public = yes
        writable = yes

[test]
        comment = Test
        path = /test
        public = yes
        writable = yes
 
Old 10-19-2007, 08:43 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
when i try to access the solaris server from Windows (Run > \\<ip-addr>) it shows an error message saying "Network path was not found".
You can try to use the netbios name you used in your smb.conf instead of the IP address of the server. Also make sure that both smbd and nmbd are running.
 
  


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
How to configure network with solaris? subaruwrx Solaris / OpenSolaris 33 03-16-2007 05:33 PM
Unable to launch SWAT to configure SAMBA Bobby P Slackware 1 02-27-2007 03:52 PM
Unable to configure samba aroop Linux - Networking 3 05-08-2004 03:28 PM
How to I configure gcc on Solaris ehsan Solaris / OpenSolaris 5 01-08-2003 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:28 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