macsat.com OpenWrt and ASUS WL Forum

OpenWrt (White Russian) => Tutorials => Topic started by: netddos on March 07, 2006, 03:33:42 AM



Title: samba asks for password in windows xp
Post by: netddos on March 07, 2006, 03:33:42 AM
i install samba according to openwrt guide..

i did exactly as it was stated except i delete samba file...it shouldn't matter cuz s50samba is there to initiate it right?

the thing is it some times work and it some times doesn't..like i have to reboot and power cycle a few times and it works when it wants to...why is that?


Title: Re: samba asks for password in windows xp
Post by: macsat on March 07, 2006, 09:04:45 AM

What do you mean dosnt work?

Does your USB device get mounted the times where "it dosnt work" ?

I have seen several bugs with the USB2.0 drivers, that have me running everything in USB 1.1 mode now, since I regard stability higher than the small performance increases that USB2.0 on theese small devices can offer.



Title: Re: samba asks for password in windows xp
Post by: netddos on March 07, 2006, 13:03:36 PM
ok so the problem is samba not broadcasting itself on the network..

i can access stuff ok by typing \\192.168.1.1

how do i fix this?


Title: Re: samba asks for password in windows xp
Post by: macsat on March 07, 2006, 15:14:34 PM

is nmbd running ?
Code:
ps |grep nmbd

Is your windows machine in the same workgroup as you have setup your samba server?


You ARE using OpenWrt here - right?



Title: Re: samba asks for password in windows xp
Post by: netddos on March 07, 2006, 15:21:31 PM

is nmbd running ?
Code:
ps |grep nmbd

Is your windows machine in the same workgroup as you have setup your samba server?


You ARE using OpenWrt here - right?



Code:
root@OpenWrt:~# ps |grep nmbd
  590 root        528 S   nmbd -D
 1759 root        288 S   grep nmbd

Code:
[global]
workgroup = WORKGROUP
server string = OpenWRT Samba Server
wins support = no
dns proxy = no
name resolve order = lmhosts hosts bcast
log file = /opt/var/log/samba/log.%m
max log size = 1000
syslog = 1
security = share
encrypt passwords = true
guest account = nobody
passwd program = /usr/bin/passwd %u
load printers = no

[SambaShare]
comment = /opt/samba
path = /opt/samba
browseable = yes
public = yes
guest ok = yes
writeable = yes
obey pam restrictions = yes

yea they are the same workgroup called WORKGROUP.

and yea nmbd IS running...samba bug?



Title: Re: samba asks for password in windows xp
Post by: macsat on March 07, 2006, 15:36:20 PM

everything seem to be setup as it should....odd that you cant see it from your windows machine.



Title: Re: samba asks for password in windows xp
Post by: netddos on March 07, 2006, 15:38:40 PM

everything seem to be setup as it should....odd that you cant see it from your windows machine.



yea.. :(

iwish someone would port the concise version of samba 3 package..


Title: Re: samba asks for password in windows xp
Post by: zsjoska on March 08, 2006, 11:27:41 AM
what are in the logs?
/opt/var/log/samba/log.x
or syslog ?


Title: Re: samba asks for password in windows xp
Post by: macsat on March 08, 2006, 11:35:04 AM

If you followed my tutorial, in the /var/log/samba dir



Title: Re: samba asks for password in windows xp
Post by: radko on March 06, 2007, 11:06:46 AM
also I have the same problem, when I try to access to samba in winxp i have the login screen with user and password.


Title: Re: samba asks for password in windows xp
Post by: macsat on March 06, 2007, 11:24:37 AM

Are you using FAT32 or ext2 ?


Title: Re: samba asks for password in windows xp
Post by: radko on March 06, 2007, 11:28:09 AM
I am using ext3 and have in globalconfig force user = root


Title: Re: samba asks for password in windows xp
Post by: macsat on March 06, 2007, 11:35:47 AM

Strange. My smb.conf looks like this, and works perfectly with both windows xp clients and mac os x tiger as a client :

Code:
[global]
 workgroup = WORKGROUP
 server string = OpenWRT Samba Server
 wins support = no
 dns proxy = no
 name resolve order = lmhosts hosts bcast
 log file = /opt/var/log/samba/log.%m
 max log size = 1000
 syslog = 0
 security = share
 encrypt passwords = true
 obey pam restrictions = yes
 guest account = nobody
 passwd program = /usr/bin/passwd %u
 load printers = no
 interfaces = br0

[shared]
 comment = /opt/samba
 path = /opt/samba
 browseable = yes
 public = yes
 guest ok = yes
 writeable = yes





Title: Re: samba asks for password in windows xp
Post by: radko on March 06, 2007, 11:47:47 AM
this is my file

[global]
workgroup = DOM
server string = WL_500GP
wins support = no
dns proxy = no
name resolve order = lmhosts hosts bcast
log file = /opt/var/log/samba/log.%m
max log size = 1000
syslog = 0
security = share
encrypt passwords = true
obey pam restrictions = yes
guest account = nobody
passwd program = /usr/bin/passwd %u
load printers = no
force user = root
interfaces = br0

[SambaShare]
comment = wspolne
path = /harddisk/samba
browseable = yes
public = yes
guest ok = yes
writeable = yes


Title: Re: samba asks for password in windows xp
Post by: macsat on March 06, 2007, 12:58:25 PM
Seems to be very much alike.

Very strange indeed.

When you are presented with the login-prompt in windows, try to use user/pass = nobody/nobody



Title: Re: samba asks for password in windows xp
Post by: radko on March 06, 2007, 13:09:54 PM
doesn't work and after that samba disaper in Microsoft Windows Network