[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: samba problems



OK here goes....

"cd" to "/etc/network" and "ls" to see whether you already have a file there
named "interfaces". If not, use you favourite editor (mine's ae, BTW as it
is so ealy to use for simple editing) and create this file with the
following contents:-

# The loopback device
iface lo inet loopback

# The eth0 device (replace the ip with the appropriate address)
iface eth0 inet static
	address 192.168.0.1
	netmask 255.255.255.255
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.10	# If this box is not the gateway, otherwise,
this can be commented out

Note that if you specified a gateway, ips meant for "other" networks will be
"routed" via the gateway.
(Someone correct me if I am wrong!)

As for Samba, have your included your username and password to the
smbpasswd...ooopsss you did mention that you skipped that pasrt when
asked....well, to create the said file, I suggest you use "Samba Web
Administration Tool" or SWAT for short...

>From thereon, you should be able to "smbclient //debian/user1" ...and make
sure you key in the correct password....

Hope that helped....


Patrick Cheong
Information Systems Assurance
Measat Broadcast Network Systems
E-mail: patrick_cheong@astro.com.my
Visit us at: http://www.astro.com.my

> -----Original Message-----
> From:	Joseph de los Santos [SMTP:jhou@info.com.ph]
> Sent:	Thursday, August 03, 2000 5:19 AM
> To:	debian-user@lists.debian.org
> Subject:	samba problems
> 
> Hi,
> 
>  hoping that someone really nice can lend a helping hand...with
> configuring 
> samba...
>     
>       1.  I always do an ifconfig eth0 <192.168.0.1> netmask <
> 255.255.255.0>  
> everytime I boot to configure my network interface. I want to configure
> the 
> interface permanently so I do not have to manually specify it everytime.
> 
>     2. do I need to do a 'route add -net <192.168.0> dev eth0' aside from 
> specifying the ip add and netmask? how about the broadcast address? do i
> need 
> to configure that too?
> 
>   3.when trying to test the connection with $smbclient \\\\debian\\user1 ,
> it 
> prompts me for the password, then gives the error..
> Password: 
> session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair
> in 
> a Tree Connect or Session Setup are invalid.)
> ah.....say what?
> 
> btw,
>  I run samba from inetd. nmblookup works..(i think, doesn't complain
> anyway)   
> testparm also doesn't complains...but checking  var/log/smb shows this 
> errors...when I first installed samba it asked me if i wanted to make a
> new 
> samba passwords file...i said no, (taking the default choice) perhaps that
> is 
> where my problem lies?
> 
> [2000/08/02 20:16:56, 1] smbd/server.c:main(641)
>   smbd version 2.0.7 started.
>   Copyright Andrew Tridgell 1992-1998
> [2000/08/02 20:16:56, 1] smbd/files.c:file_init(216)
>   file_init: Information only: requested 10000 open files, 1014 are
> available.
> [2000/08/02 20:17:11, 0] passdb/smbpass.c:startsmbfilepwent_internal(87)
>   startsmbfilepwent_internal: unable to open file /etc/samba/smbpasswd.
> Error 
> was No such file or directory
> [2000/08/02 20:17:11, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
>   unable to open smb password database.
> [2000/08/02 20:17:11, 1] smbd/password.c:pass_check_smb(500)
>   Couldn't find user 'root' in smb_passwd file.
> [2000/08/02 20:17:11, 0] passdb/smbpass.c:startsmbfilepwent_internal(87)
>   startsmbfilepwent_internal: unable to open file /etc/samba/smbpasswd.
> Error 
> was No such file or directory
> [2000/08/02 20:17:11, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
>   unable to open smb password database.
> [2000/08/02 20:17:11, 1] smbd/password.c:pass_check_smb(500)
>   Couldn't find user 'root' in smb_passwd file.
> [2000/08/02 20:17:11, 1] smbd/reply.c:reply_sesssetup_and_X(925)
>   Rejecting user 'root': authentication failed
> 
> 
> 
> Hoping for any kind of help. 
> 
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org <
> /dev/null



Reply to: