neitzen
asked on
Solaris Samba Config
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/nmblo
querying __SAMBA__ on 210.82.38.132
210.82.38.132 __SAMBA__<00>
Any help would be greatly appreciated...
- N.
ASKER
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.
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
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/lmhos ts) in a different place (where samba won't find it)
remote browse sync = 209.82.38.132 209.82.38.130
move the lmhosts (I suppose it's /usr/local/samba/lib/lmhos
ASKER
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/lmhos ts. 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/lmhos ts. 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)
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.
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/lmhos
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/lmhos
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)
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.
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.
This actaully looks like the samba server does not have services available for clients
ASKER
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/smbst atus
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/lmhos ts. 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/lmhos ts. 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.c onf
[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
# 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/smbst
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.
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/lmhos
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/lmhos
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.c
[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
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 ?
Meanwhile try to run
smbpasswd -S
and let's see the result.
How dis you install samba on this machine ?
There is nothing in the log.nmbd file when you try to connect to syrinx ?
ASKER
Here are some updates
# /usr/local/samba/bin/smbpa sswd -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.c onf, added the stuff to /etc/init.d and that was it.
# /usr/local/samba/bin/smbpa
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.c
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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)
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)
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