Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.