Click to See Complete Forum and Search --> : SAMBA and users
linuxVirgin23
01-29-2003, 03:55 PM
Hi,
Can see my Linux box from my win98 machine... But get a "The computer or sharename can not be found..." message when i try to open it up...
I tried...(Pc is name of my win box)
smbpasswd -a Pc
and got an error message
New SMB password:
Retype new SMB password:
unable to open passdb database.
Added user Pc.
--Does Pc have to exist as a linux user, and is it right that ive made it a memeber of the SMB group...
or do you think my problem lies elsewhere...
(almost there i rekon)
JezzerP
01-30-2003, 10:20 AM
I got the same error when I did this, but it seems to have worked OK. Just type Pc and your password when asked in Win98 and it may work.
z0mbix
01-30-2003, 11:31 AM
Just use smbadduser username, and it will ask you for the windows password. This user needs to be a valid linux user too.
linuxVirgin23
01-30-2003, 03:11 PM
Thanks.
1) smbadduser not found on my machine (i have latest rpm)
2) Ive been trying to follow through the suggerstions in /usr/share/doc/samba-2.2.7/docs/textdocs/DIAGNOSIS.txt
every things fine until test 8 "On the PC type the command "net view \\BIGSERVER""
which fails.
Im completely lost here networks have never been my strong point, and Im getting truly lost in the documentation...
I'm using webmin to set samba up if this helps. I have the linux box set up as a WINS server
I also just noticed that SWAT reports nmbd as not running, but ps reports
[pete@gonzo pete]$ ps U root
PID TTY STAT TIME COMMAND
1 ? S 0:04 init
2 ? SW 0:00 [keventd]
3 ? SW 0:00 [kapmd]
4 ? SWN 0:00 [ksoftirqd_CPU0]
5 ? SW 0:01 [kswapd]
6 ? SW 0:00 [bdflush]
7 ? SW 0:00 [kupdated]
8 ? SW 0:00 [mdrecoveryd]
12 ? SW 0:01 [kjournald]
67 ? SW 0:00 [khubd]
170 ? SW 0:00 [kjournald]
171 ? SW 0:00 [kjournald]
514 ? S 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0. 574 ? S 0:00 syslogd -m 0
578 ? S 0:00 klogd -x
705 ? S 0:00 /usr/sbin/sshd
716 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid 734 ? S 0:00 rpc.rquotad
739 ? SW 0:00 [nfsd]
740 ? SW 0:00 [nfsd]
741 ? SW 0:00 [nfsd]
742 ? SW 0:00 [nfsd]
743 ? SW 0:00 [nfsd]
744 ? SW 0:00 [nfsd]
745 ? SW 0:00 [nfsd]
746 ? SW 0:00 [nfsd]
747 ? SW 0:00 [lockd]
748 ? SW 0:00 [rpciod]
754 ? S 0:00 rpc.mountd
763 ? S 0:00 gpm -t imps2 -m /dev/mouse
774 ? S 0:00 /usr/sbin/httpd
783 ? S 0:00 crond
837 ? S 0:00 rhnsd --interval 120
853 ? S 0:01 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/we 857 tty1 S 0:00 /sbin/mingetty tty1
858 tty2 S 0:00 /sbin/mingetty tty2
859 tty3 S 0:00 /sbin/mingetty tty3
860 tty4 S 0:00 /sbin/mingetty tty4
861 tty5 S 0:00 /sbin/mingetty tty5
862 tty6 S 0:00 /sbin/mingetty tty6
863 ? S 0:00 /usr/bin/gdm-binary -nodaemon
908 ? S 0:02 /usr/bin/gdm-binary -nodaemon
909 ? S< 279:59 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth
3606 ? S 0:00 /sbin/pam_timestamp_check -d root
4046 ? S 0:00 nmbd -D
4077 ? S 0:00 /usr/sbin/userhelper -w neat
4080 ? S 0:01 /usr/bin/python2.2 /usr/sbin/neat
4142 ? S 0:00 smbd -D
4147 ? S 0:00 nmbd -D
4220 ? S 0:00 /usr/sbin/nmbd -D
4228 ? S 0:00 /usr/sbin/nmbd -D
4245 ? Z 0:00 [miniserv.pl <defunct>]
4250 ? S 0:00 /usr/sbin/nmbd -D
The multiple entrys for nmbd must of come when i clicked the 'start nmbd button.
??????????????
michaelk
01-30-2003, 04:57 PM
The commad smbpasswd. Need to be root to add user.
smbpasswd -a <username>
Check the samba logs. Might shed some light to the problem. /var/log/samba/
linuxVirgin23
01-30-2003, 06:48 PM
both services are running. I'm now working through the docs at http://samba.mirror.ac.uk/samba/ftp/docs/Samba24Hc13.pdf
I am begining to suspect that the problem is with nmbd...
following the docs i try
nmblookup -U 127.0.0.1 GONZOWINS
querying GONZOWINS on 127.0.0.1
192.168.0.3 GONZOWINS<00>
this is fine, but,
nmblookup -B 192.168.0.255 GONZOWINS
querying GONZOWINS on 192.168.0.255
name_query failed to find name GONZOWINS
...this seems sufficently similar to my original windows error to nake think this may be the problem... I think im putting the right boadcast address in... Im using DHCP from a ADSL router to get ip addresses, perhaps this could be the problem... how should braodcast work... my ip settings are
/sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:60:08:5E:70:5B
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:136383 errors:0 dropped:0 overruns:0 frame:0
TX packets:97127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:146690832 (139.8 Mb) TX bytes:10592363 (10.1 Mb)