samba 207 on solaris - idiot newbie questions
Chris Jacob
cjacob at county.oxford.on.ca
Mon Jun 26 18:53:17 GMT 2000
Hello all.
I've decided to try using samba on our Solaris systems to give users who
are stuck with PCs on their desks access to our gis data.
I obtained a compiled binary package of version 2.0.7 from one of the
samba.org sites, and have installed SAMBAroot, SAMBAusr, SAMBAman, and
SAMBAdoc. All apparently worked just fine.
I've made a couple of changes to the smb.conf file, changing the nt
domain name, changing printing to sysv and printcap name to lpstat,
adding a guest account on our solaris machines called ntbrowse, setting
security to user, setting password level to 3 (my password has 2 shifted
characters), and adding a "share" on the /tmp filesystem for testing.
Samba is set up to be started by inetd when required. It seems to.
I've run through the tests in the DIAGNOSIS.txt file, and most things
work just fine. Those which failed are test 8 (net view from PC), test
9 (net use from PC), and test 11 (file manager browse from PC), all with
bad passwords. The equivalent tests from the unix side worked just fine
(test 3, for example, with smbclient listing available "shares").
The server ("gabrieli") shows up when I browse to Network Neighbourhood
on a Win98 PC. When I double-click the machine to try to see what
shares are available, I'm prompted for a password to connect to
\\GABRIELI\IPC$. I type in my unix password (unix and nt userids are
the same = "jacob") and get the response "The password is incorrect.
Try again."
If I try to "map a network drive" on the PC, say \\gabrieli\tmp to g:\,
I get a password prompt and the same result as above.
A "net use g: \\gabrieli\tmp" from the command line results in an Error
86 (password incorrect).
We do use NIS here on our Sun machines. The machine I'm trying the
initial samba install on is an NIS client machine, not the server. Is
this a problem with the pre-complied binaries? Why does it work from
the unix side then - isn't that using the same password maps when people
log in?
If I have to re-compile the binaries, can anyone suggest documentation,
examples, or support websites for that process?
I've attached a file of notes from the diagnosis.txt tests...
Thanks very much for helping an idiot newbie like me! (one problem is
that I'm not really a unix administrator, I just have to pretend...)
Regards,
Chris J.
--
Chris Jacob cjacob at county.oxford.on.ca
GIS Analyst http://lris.county.oxford.on.ca
County of Oxford LRIS
Woodstock, Ontario t. +519.539.0015 x334
Canada f. +519.537.3024
-------------- next part --------------
test 1:
=======
- testparm reports no errors in smb.conf
(output is attached)
test 2:
=======
- pinging is ok
gabrieli:bin:296 > ping coollptp
coollptp is alive
& similar from laptop to gabrieli
test 3:
=======
- smbclient on unix machine is ok *prompts for password
gabrieli:jacob:68 > /opt/samba/bin/smbclient -L gabrieli
added interface ip=10.210.10.250 bcast=10.210.10.255 nmask=255.255.255.0
Password:
Domain=[COUNTY] OS=[Unix] Server=[Samba 2.0.7]
Sharename Type Comment
--------- ---- -------
homes Disk Samba Server on gabrieli
printers Printer Samba Server on gabrieli
tmp Disk temporary file space
IPC$ IPC IPC Service (Samba 2.0.7)
hold Printer
print Printer
hp_plan_main Printer
ps-annex Printer
inkjet Printer
postscript Printer
jacob Disk Samba Server on gabrieli
Server Comment
--------- -------
Workgroup Master
--------- -------
COUNTY PLANNING
WORKGROUP GABRIELI
test 4:
=======
- nmblookups seem ok
gabrieli:jacob:71 > /opt/samba/bin/nmblookup -B GABRIELI __SAMBA__
querying __SAMBA__ on 10.210.10.250
10.210.10.250 __SAMBA__<00>
test 5:
=======
- nmblookup seems ok
gabrieli:jacob:72 > /opt/samba/bin/nmblookup -B COOLLPTP '*'
querying * on 10.210.10.240
10.210.10.240 *<00>
test 6:
=======
- name broadcast query seems to work (quickly!)
gabrieli:jacob:73 > /opt/samba/bin/nmblookup -d 2 '*'
added interface ip=10.210.10.250 bcast=10.210.10.255 nmask=255.255.255.0
querying * on 10.210.10.255
Got a positive name query response from 10.210.10.250 ( 10.210.10.250 )
Got a positive name query response from 10.210.10.243 ( 10.210.10.243 )
Got a positive name query response from 10.210.10.240 ( 10.210.10.240 )
Got a positive name query response from 10.210.10.246 ( 10.210.10.246 )
Got a positive name query response from 10.210.10.148 ( 10.210.10.148 )
Got a positive name query response from 10.210.10.141 ( 10.210.10.141 )
Got a positive name query response from 10.210.10.250 ( 10.210.10.250 )
Got a positive name query response from 10.210.10.71 ( 10.210.10.71 )
Got a positive name query response from 10.210.10.74 ( 10.210.10.74 )
Got a positive name query response from 10.210.10.136 ( 10.210.10.136 )
Got a positive name query response from 10.210.10.241 ( 10.210.10.241 )
Got a positive name query response from 10.210.10.144 ( 10.210.10.144 )
Got a positive name query response from 10.210.10.143 ( 10.210.10.143 )
Got a positive name query response from 10.210.10.72 ( 10.210.10.72 )
Got a positive name query response from 10.210.10.73 ( 10.210.10.73 )
Got a positive name query response from 10.210.10.142 ( 10.210.10.142 )
Got a positive name query response from 10.210.10.139 ( 10.210.10.139 )
Got a positive name query response from 10.210.10.149 ( 10.210.10.149 )
Got a positive name query response from 10.210.10.135 ( 10.210.10.135 )
10.210.10.250 *<00>
10.210.10.243 *<00>
10.210.10.240 *<00>
10.210.10.246 *<00>
10.210.10.148 *<00>
10.210.10.141 *<00>
10.210.10.250 *<00>
10.210.10.71 *<00>
10.210.10.74 *<00>
10.210.10.136 *<00>
10.210.10.241 *<00>
10.210.10.144 *<00>
10.210.10.143 *<00>
10.210.10.72 *<00>
10.210.10.73 *<00>
10.210.10.142 *<00>
10.210.10.139 *<00>
10.210.10.149 *<00>
10.210.10.135 *<00>
gabrieli:jacob:74 >
test 7:
=======
- connect to /tmp service on gabrieli with smbclient software (on gabrieli)
works fine. Logged on with password matching unix username (NIS and shadow).
dir command gives correct amount of free disk space.
gabrieli:jacob:75 > id
uid=72(jacob) gid=16(arcadm)
gabrieli:jacob:76 > /opt/samba/bin/smbclient //gabrieli/tmp
added interface ip=10.210.10.250 bcast=10.210.10.255 nmask=255.255.255.0
Password:
Domain=[COUNTY] OS=[Unix] Server=[Samba 2.0.7]
smb: \> dir
. D 0 Fri Jun 23 11:13:42 2000
.. D 0 Tue Jun 6 11:28:02 2000
psb_front_socket R 0 Tue Jun 20 16:41:54 2000
ps_data 4616 Tue Jun 20 16:41:50 2000
psb_back_socket R 0 Tue Jun 20 16:41:54 2000
.X11-unix DH 0 Tue Jun 20 16:42:05 2000
.X11-pipe DH 0 Tue Jun 20 16:42:05 2000
wg0000000c 8192 Wed Jun 21 13:32:03 2000
SDTDB~#- 180756 Wed Jun 21 09:01:03 2000
nscomm40-jacob D 0 Wed Jun 21 13:20:18 2000
wg00000020 8192 Wed Jun 21 13:33:26 2000
.removable DH 0 Thu Jun 22 11:58:57 2000
62588 blocks of size 2048. 62300 blocks available
smb: \>
smb: \> quit
gabrieli:jacob:77 > df
Filesystem kbytes used avail capacity Mounted on
...
swap 127248 576 126672 1% /tmp
...
test 8:
=======
- net view from PC results in bad password error
C:\WINDOWS>net view \\gabrieli
Error 86: The specified network password is not correct. Type the correct
password, or contact your network admiistrator for more information.
C:\WINDOWS>
*************** so, fixes as follows:
- look for incorrect hosts allow hosts deny or valid users lines in smb.conf
...there are none
- guest account may not be valid
...using ntbrowse
- bind interfaces only is "No"
- nothing else is running on port 139
- subnet mask settings on PC are correct, and on unix are correct
...doesn't appear to be a log.nmb file to check!
test 9:
=======
- net use command from PC results in incorrect password error
C:\WINDOWS>net use t: \\gabrieli\tmp
The password is invalid for \\GABRIELI\TMP. For more information, contact your
network administrator.
Type the password for \\GABRIELI\TMP:*********
Error 86: The specified network password is not correct. Type the correct
password, or contact your network administrator for more information.
Type the password for \\GABRIELI\TMP:
...added user = jacob line to smb.conf [tmp] section to see if username mapping
required. The error above is still the result. So, that's not it...
test 10:
========
- nmblookup on unix box works properly (finds planning as master browser)
gabrieli:jacob:79 > /opt/samba/bin/nmblookup -M COUNTY
querying COUNTY on 10.210.10.255
10.210.10.71 COUNTY<1d>
gabrieli:jacob:80 >
test 11:
========
- file manager browse doesn't work - prompts for password, it's incorrect...
Trying to browse to \\GABRIELI\IPC$ apparently
Response is:
"The password is incorrect. Try again."
note that PC can browse other network resources (actual NT servers and W98 PCs)
More information about the samba
mailing list