PDA

View Full Version : Samba and Firmware 1.9.2.7-RC3



Arobs45
10-01-2005, 09:14
Good morning you all !

I really appreciate this forum, and every day I am more and more suprised by all the new functions of this router... I've started from nearly 0 !!! :p

Now in the RC3 issue of the OLEG (that you man !) firmware, there is this Samba enable thing.
Previously, I tried to enable it "by hand" to make some tests. I got the error message of the image and thought it was due to my unknow of Linux and so on...
But I still get the same message with the Samba option of the RC3...

The problem is :
When I try to connect to the shared drive with \\192.168.1.1, it asks me for a guest password... (see picture) I have no idea of what it can be...

Question :
Someone knows what I can do ?

Thanks very very much !

Regards

Jean-François

hugo
10-01-2005, 09:28
Hello jf,

Your smb.cfg is not correct. You have probably set it to user security. Using user security needs to set up smb account using smbpasswd.

I suggest you to use security=share for now, then try to set up your users if everything is ok. The user must exist in passwd file, and smbpasswd file.

Arobs45
10-01-2005, 09:34
Hugo,

I have not setup any smb.cfg file. That's why also I am surprised to see that.
I just use the EXACT configuration, as provided in the Oleg's firmware...

Has anyone else tried this ?
I would appreciate the feedback !

Jean-François

Antiloop
10-01-2005, 09:52
I don't have any problems with it, but I use a already mapped drive letter

try using \\192.168.1.1\share or \\192.168.1.1\share$ instead please, and see if it helps

Styno
10-01-2005, 10:29
I have not setup any smb.cfg file. That's why also I am surprised to see that.
I just use the EXACT configuration, as provided in the Oleg's firmware...

The configuration supplied with the firmware is an example, which does not nessesarily works. You'll have to reconfigure it yourself (probably change the user root to admin).

Oleg
10-01-2005, 10:39
Styno, 1.9.2.7-3 has this in the web interface, so this configuration should work.

Oleg
10-01-2005, 10:41
Previously, I tried to enable it "by hand" to make some tests. I got the error message of the image and thought it was due to my unknow of Linux and so on...

do you've flashfs enabled?

Arobs45
10-01-2005, 11:43
Oleg,

As I told you, I am really newbie!
So I have put like it is in the firmware... I don't know if flashfs is enabled or not...

Would that change something ? Is that not by standard when I upgrade the firmware ?

JF

Oleg
10-01-2005, 11:44
So I have put like it is in the firmware... I don't know if flashfs is enabled or not...

:) So, it's disabled for sure.

It should not ask you for password. Have you specified LAN hostname?

Arobs45
10-01-2005, 11:47
What do you mean by LAN Hostname ?

I have a standard home network, with no domain server...
The default workgroup is WORKGROUP

The router is set on WORKGROUP on the Samba page

The router name is "MAISON" and when I cmd "ping maison" it pings to 192.168.1.1 (correct IP).

So ?

Thx a lot !

JF

Oleg
10-01-2005, 11:50
What do you mean by LAN Hostname ?

There is a setting on the IP config page of the wl500g


I have a standard home network, with no domain server...
The default workgroup is WORKGROUP

The router is set on WORKGROUP on the Samba page

The router name is "MAISON" and when I cmd "ping maison" it pings to 192.168.1.1 (correct IP).


Have you tried entering


\\maison\share

in the Run command box?

Arobs45
10-01-2005, 11:55
When I hit \\maison\share in the Run Dialog box, it asks exactly for the same password....

I'll check later the IP Config thing later (I am not connected to my router for the moment) but I don't remember changing something there...

Thanks for your help anyway !
Jean-François

Oleg
10-01-2005, 12:23
ok, if still does not work, then establish telnet session
and type


cat /etc/hosts
cat /etc/smb.conf
cat /var/log/smb

and post results here. Also, be sure, that wl500g runs in home gateway or router mode.

Arobs45
10-01-2005, 22:08
Oleg,
here is some part of the answer :

The routeur is in the "Home Gateway Mode".

The host name in the IP settings is set to "Maison"

The cat/etc/hosts gives :


127.0.0.1 localhost.localdomain localhost
192.168.1.1 Maison my.router my.WL500g


The cat/etc/smb.conf


[global]
workgroup = WORKGROUP
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = no
preserve case = yes
short preserve case = yes

[share]
path = /tmp/harddisk


The cat /var/log/smb give


Empty !


If that can help you to help me !!!! Thanks a lot !

Regards

Jean-François

Oleg
10-01-2005, 22:25
Ok, stupid question - have you inserted usb stick or connected usb-drive?

run


ps
mount

Arobs45
11-01-2005, 06:34
Yes, I have a USB hard disk inserted (FAT) that I can access from the FTP !

Here is the PS :


PID Uid VmSize Stat Command
1 admin 656 S /sbin/init
2 admin SW [keventd]
3 admin SWN [ksoftirqd_CPU0]
4 admin SW [kswapd]
5 admin SW [bdflush]
6 admin SW [kupdated]
7 admin SW [mtdblockd]
38 admin 300 S telnetd
43 admin 440 S httpd eth1
48 admin 352 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
49 admin 312 S klogd
50 nobody 460 S dnsmasq
56 admin SW [khubd]
67 admin 272 S lpd
70 admin 248 S p9100d -f /dev/usb/lp0 0
72 admin 248 S p9101d -f /dev/printers/0 1
75 admin 356 S waveservermain
77 admin 360 S rcamdmain
81 admin SW [usb-storage-0]
82 admin SW [scsi_eh_0]
87 admin 316 S infosvr br0
88 admin 468 S watchdog
92 admin 360 S ntp
105 admin 396 S udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
110 admin 392 S stupid-ftpd
112 admin 732 S /usr/sbin/nmbd -D
114 admin 612 S /usr/sbin/smbd -D
2266 admin 484 S upnp -D -L br0 -W eth1
2268 admin 508 S -sh
2269 admin 368 R ps


Here is the mount


/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type vfat (rw,sync)


See you

JF

Antiloop
11-01-2005, 08:36
another stupid question ;)

can you upload files at all ?
and remove them etc..

Arobs45
11-01-2005, 08:52
Yes !
The FTP file is really working fine. Upload, download....

I can even map it to a drive lettre with the NetDrive tool from Novell.... but I would prefer Samba running on the router side !!!

By the way, I have tested it with 3 different computers :
1. Windows XP / Wifi laptop
2. Windows 2000 / Ethernet laptop
3. Windows XP / Ethernet Desktop
All 3 have the same "problem"...

Tks

JF

Oleg
11-01-2005, 09:32
Do you've any firewalls running on your PC?
Also, run command below, but you need to try accessing \\maison\share BEFORE running this, so log will be populated with data, try entering any password:


cat /var/log/nmb
cat /var/log/smb

Arobs45
11-01-2005, 19:22
I don't understand one thing...

I rebooted the router, and first used one of the computers I don't usually use... Then every thing works fine !

Then I use the computer I usually use. In fact, it is my company computer. So it logs on a domain server at my company, but get a IP from the router at home... And then nothing works...

Any idea ?

Anyhow, I know now that it is coming from my company computer...
Maybe the domain thing is making it wrong !

Thanks a lot for your great help !

Jean-François

Oleg
11-01-2005, 19:30
Probably domain name and workgroup name (used by wl500g) makes sense. They should be different as seems.

lbeuchat
18-01-2005, 23:36
same problem for me :
samba is active
usb drive is connected
i'm using firmware 1.9.2.7-3b
lan hostname is wl500g, ping wl500g is ok
i don't change anything on smb.conf

when i want to connect to usb stick, windows (2000 or XP) asks me for a user and password

my computer is on a domain active directory (professionnal)
if i try to acces to samba, windows says (in french) :

"\\Wl500g n'est pas accessible.
Aucun serveur d'accès n'est actuellement disponible pour traiter la demande d'ouverture de session."

so i think that's why we need to give username/password.
but wich one ?
any help ?

vegu
19-01-2005, 08:46
As I know Windows used to try to map netbios (samba) shares with the currently logged on user credentials. This is done automatically, you can bypass it only with explicitly given username/password. So try:

1. Mapping the share with router admin/password (the one you use on the web interface). I don't know why should it work according to your smb.conf, but it takes about 30 seconds to try.

2. If No.1 didn't work you should edit your smb.conf to use security=user instead of share level. I can send a working smb.conf + smbusers combination if you want. This way you can set the currently logged on username (I mean the username you type when logging in to windows) to be the samba username in the router. I know this is hacking, but works.

I wonder if giving different workgroup names solves the problem...

Vegu

lbeuchat
19-01-2005, 20:58
As I know Windows used to try to map netbios (samba) shares with the currently logged on user credentials. This is done automatically, you can bypass it only with explicitly given username/password. So try:

1. Mapping the share with router admin/password (the one you use on the web interface). I don't know why should it work according to your smb.conf, but it takes about 30 seconds to try.

2. If No.1 didn't work you should edit your smb.conf to use security=user instead of share level. I can send a working smb.conf + smbusers combination if you want. This way you can set the currently logged on username (I mean the username you type when logging in to windows) to be the samba username in the router. I know this is hacking, but works.

I wonder if giving different workgroup names solves the problem...

Vegu

thanks, your first tip is working on my personnal computer (same workroup and user/password). But only on read mode, not write mode.

and this tip can't solve my problem with my professional computer (domain and user differents).
i don't understand what to do with your second tip.
i don't know anything in linux, not in VI.

here is my smb.conf
[global]
workgroup = MAISON
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = no
preserve case = yes
short preserve case = yes

[share]
path = /tmp/harddisk

[share$]
path = /tmp/harddisk
writable = yes
force user = laurent
browseable = no

with this .conf, i can read directory Share$, but i can't write. Why ?

Antiloop
19-01-2005, 22:11
go into telnet
perform this command once:

chmod 777 /tmp/harddisk

lbeuchat
20-01-2005, 13:47
go into telnet
perform this command once:

chmod 777 /tmp/harddisk

:(
i got this message :
chmod: /tmp/harddisk: Read-only file system

thanks

Oleg
20-01-2005, 14:35
Is this NTFS filesystem?

lbeuchat
20-01-2005, 14:37
Is this NTFS filesystem?

yes

............. (sorry my message was too short to be accepted by forum :D )

Oleg
20-01-2005, 14:40
ntfs is read-only, switch either to fat32 or ext3.

lbeuchat
20-01-2005, 14:49
ntfs is read-only, switch either to fat32 or ext3.


thank you, it's work

there remains to me only one problem to be solved : connection with my professional computer to the samba disk
if you have a good solution, you'll be my hero ;)