Hi, Oleg. Its possible rebuild new firmware for wl500gx with new samba without install to /opt directory (externall usb disc)? Samba implement for latest firmware v. 2.x is old and very bugy! New version samba is 3.x.
Thanks!!!
;)
Printable View
Hi, Oleg. Its possible rebuild new firmware for wl500gx with new samba without install to /opt directory (externall usb disc)? Samba implement for latest firmware v. 2.x is old and very bugy! New version samba is 3.x.
Thanks!!!
;)
Samba 3 is big and will not fit in 4MB flash. But I think that historical samba 2.2.12 could replace 2.0.10-security-rollup
OK! please replace samba v. 2.0.10-security-rollup to 2.2.12. Very thanks!!!
Hehe. Oleo in not Oleg;
Aaaah! ok! :-)
There are problems with older samba versions and Window Vista, see:
http://www.linux-watch.com/news/NS4434907782.html
Upgrading to 2.2.x does not make any sense anyway.Quote:
Fortunately, there are two ways to fix this problem. The first is just to force Vista to use the NTLM protocol as well as NTLM2. To do that, use these commands:
Click "Start -> Run." Then, type in the Run field: "secpol.msc." That will bring you to Vista's security policy system. Once there, use "Go to: Local Policies > Security Options" and then find "Network Security: LAN Manager" authentication level. Once there, change the Setting from "Send NTLMv2 response only" to "Send LM & NTLM -- use NTLMv2 session security if negotiated."
My problem is, when connect from linux (kernel 2.6.17 - DreamBox) with cifs to wl500gx (samba). I have create directory ok, but not create files (file 0byte). When i am upgrade samba (/opt) to version 3.x its works perfectly. Iam not using NFS!!!
This error wl500gx log:
smbd/nttrans.c:map_share_mode(443)
map_share_mode: Incorrect value 40000000 for desired_access to file \testfile.txt
I wanted to install opensuse 10.2 via a samba share on the WL-500gx running samba 2.0.10-security-rollup (OpenWrt Kamikaze), and had the same problem.
After the system was up installing from DVD, same problem accessing files from via a manual mount of the share and various applications.Quote:
Jan 13 00:00:50 (none) smbd[7075]: [2007/01/13 00:00:50, 0] smbd/nttrans.c:map_share_mode(443)
Jan 13 00:00:50 (none) smbd[7075]: map_share_mode: Incorrect value 80000000 for desired_access to file \suse\boot\i386\root
Jan 13 00:02:39 (none) smbd[7143]: [2007/01/13 00:02:39, 0] smbd/nttrans.c:call_nt_transact_ioctl(2516)
Jan 13 00:02:39 (none) smbd[7143]: call_nt_transact_ioctl: Currently not implemented.
But: Accessing files via KDE/Konqueror and the "Network Neigbourhood" did work (Create dir, create text file, edit file with Kate, save file).
Strange...
HI Oleg,
1)thanks for your work- it's great
2)I have problem with btime because btime in /proc/stat is changing without reboot or halt system. Btime isn't static until next reboot. Is it usual thing or bug this kernel?
thanks
It looks like Samba 3 is too big for all "swapless" routers. For this reason I have prepared Samba 2 packages with Samba Web Admin Tool which will ease config and admin for samba newcomers. SWAT interface looks like:
SWAT globals
http://img262.imageshack.us/img262/5...bals9ho.th.png
SWAT SHARES page
http://img152.imageshack.us/img152/4...ares3xv.th.png
SWAT STATUS page
http://img152.imageshack.us/img152/4...atus3cr.th.png
Installation and running samba 2 is done out of the box by the following commands:
Point your browser to http://192.168.1.1:901/ to administer samba.Code:/opt/bin/ipkg update
/opt/bin/ipkg remove samba
/opt/bin/ipkg install samba2
/opt/bin/ipkg install xinetd
/opt/etc/init.d/S10xinetd start
/opt/etc/init.d/S80samba start
See http://trac.nslu2-linux.org/optware/changeset/5271 for details.
Hi Oleo,
thank You for your work. I'm a poor Vista-Home-User and have no 'secpol.msc' to run the old Samba-Version.
Can you please give a short 'How-to'? I've installed and updated samba2 and 192.168.1.1:901 shows now the samba-web-config.
But at status-Site: smbd: not running, nmbd: not running. The 'Start'-Buttons do not activate them.
Vista and Win-XP shows my USB-HDD, but I have further no access to it (now with XP, too). What's wrong?
I would first look to disable samba demo mode. Then see if there is something bad happened with /opt/etc/S80samba start
Ok. Samba demo mode and shares are disabled.
On telnet '/opt/etc/init.d/S80samba start' results with 'Starting smbd:' and with 'Starting nbd:' .
I would try to fore samba to listen to br0 with editing /opt/etc/samba/smb.conf
and uncomment
Code:; interfaces = br0
Look into /opt/var/log/samba for content of log files.
Check for running daemons withThere could be other network related problems that can be checked with netstat -lnQuote:
ps|grep mbd
in my '/opt/etc/samba/smb.conf' there is no '; interfaces = br0'.
My conf:
# Samba config file created using SWAT
# from 192.168.1.3 (192.168.1.3)
# Date: 2007/02/07 07:16:30
# Global parameters
[global]
workgroup = MSHEIMNETZ
encrypt passwords = Yes
[printers]
comment = All Printers
path = /opt/var/spool/samba
printable = Yes
browseable = No
[Part1]
path = /opt
read only = No
guest ok = Yes
ps|grep mbd result:
there semse no running services.
Mh, I think I made any rookie mistake...
So then you have swat running. Use GUI to setOr edit smb.conf and add it! Then try againg to run samba.Quote:
interfaces=br0
And note that log path should exist. You've erased all this settings with SWAT
Interface is now br0 but Samba still not running.
Logfile is set. It shows: '[2007/02/08 08:37:35, 0] source/lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found'
I see my USB-HDD in my Win XP and Vista Network (shows its name Usbhdd). If I doubleclick the message appear: You have not the rights to access to it (free translate from german).
What can i do? Should i wait, till Oleg implement Samba 2.2 in his firmware (hope,hope)? Should I refirm my router with Olegs Firmware and start from the beginnig? I hate Vista home...;-)
ifconfig will show your interfaces. I've assumed that you have wl500g something.
add user nobody or similar to /etc/passwd for guest account.
Oleo, thank you for help. I refirm my router (WL-500gp) and start at the beginning. I study http://www.sprayfly.com/wiki/Samba_Guides (very good wiki) and install samba2 with your describes.
Now it works fine with XP and Vista home.
My mistake: I use Olegs 1.9.2.7-7f and disable FTP-Server in the web-interface. In this case samba don't work and USB-HDD don't mount.
Last qustion: Of course that, should I update the FTP-Server how describes here: http://www.sprayfly.com/wiki/VSFTP_Guides. Or is it unnecessary for samba-services? I use no FTP...
You can mount partition in /usr/local/sbin/post-boot file if samba and stupid-ftpd is disabled ant thus no mount occurs. Disable ftpd , nfs if you do not need them.
Hmm...this is my post-boot:
#!/bin/sh
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
swapon /dev/discs/disc0/part2
/opt/etc/init.d/rc.unslung
#/opt/etc/init.d/S10xinetd start
#/opt/etc/init.d/S80samba start
I think it's okay for auto-mounting. But it works only, if I enabled FTP in the web-interface. And also Samba starts only with ftp on.
This is because your script lacks some important module loading also!
Addat the beginning and wait some seconds for kernel to detect hardware. It could be in a loop but not as braindead loop like one you have.Quote:
insmod scsi_mod
insmod usb-storage
insmod sd_mod
Note that WL-HDD requires other modules FOR ide that I am unaware.
lsmod will show you proper modules.
oleo, you are so right! I do this and all runs stable with xp and vista home. (with disable FTP in Web-interface). Great Thanks! Only one error in Log:
But I think, this is normal (read on web)Code:Feb 9 18:11:38 smbd[197]: [2007/02/09 18:11:38, 0] smbd/nttrans.c:call_nt_transact_ioctl(2516)
Feb 9 18:11:38 smbd[197]: call_nt_transact_ioctl: Currently not implemented.
Perhaps for other readers, my smb.conf looks now:
My post-boot file:Code:[global]
workgroup = WORKGROUP
guest account = nobody
server string = USBDISC
interfaces = 192.168.1.0/24 127.0.0.1
bind interfaces only = yes
security = SHARE
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 50
encrypt passwords = no
dns proxy = no
log file = /opt/var/log/samba/log.%m
load printers = No
[smbshare]
path=/opt/share
writeable = yes
browseable =yes
force user = admin
A hint for vista user with this configuration: In Xp you can explore the WL-HDD direct via doubleclick on 'USBDISC' in Network. In Vista 'USBDISC' is shown, but you can't doubleclick. But go on 'Run' and enter \\USBDISC\smbshare.Code:#!/bin/sh
# test if USB disc has been attached
# if not - then insert needed modules
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
# wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
swapon /dev/discs/disc0/part2
/opt/etc/init.d/rc.unslung
´
In cause of that, Logfile:
Code:Feb 9 18:42:03 smbd[149]: [2007/02/09 18:42:03, 0] lib/util_sock.c:set_socket_options(151)
Feb 9 18:42:03 smbd[149]: Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
Feb 9 18:42:03 smbd[149]: [2007/02/09 18:42:03, 0] lib/util_sock.c:set_socket_options(151)
Feb 9 18:42:03 smbd[149]: Failed to set socket option TCP_NODELAY (Error Operation not supported)
Feb 9 18:42:44 smbd[371]: [2007/02/09 18:42:44, 0] smbd/service.c:make_connection(214)
Feb 9 18:42:44 smbd[371]: hnpc1 (192.168.1.2) couldn't find service smbshare.
Feb 9 18:42:44 smbd[371]: [2007/02/09 18:42:44, 0] smbd/service.c:make_connection(214)
Feb 9 18:42:44 smbd[371]: hnpc1 (192.168.1.2) couldn't find service smbshare
hi oleo,
i have tried to remotely install (from my office) the samba2 package on my wl-hdd at home without thinking what i am doing :-O and while downloading the package i have realized i was already running samba 2.0.10 included in olegs latest firmware. the result was: installation process hangs now (and i have to wait until the evening for going home and restarting wl-hdd).
i guess i should have stop samba process before starting installation of samba2 package. but i am not quite sure. so my question (before i have another try this evening): can i install samba2 package on olegs latest wl-hdd firmware 1.9.2.7-7f in order to get the web-frontend for managing samba?
thanks for any assistance
peter
running Oleg samba does not interfere with installation process. Startup procedure also kills .mbd daemons. There could be a problem if you have running samba 2.2.12 daemon and want to reinstall it. Then "Text file busy could occur". For this reason I recommed to killall nmbd and smbd brefor any reinstallation.
good morning oleo,
thanks a lot for your hints. i had no time yesterday evening but today i am going to try again. will let you know the results :-)
many thanks again
peter
hi oleo,
i have tried again to install the samba2 package but no success. just let me describe and comment my steps:
here your walkthrough i was following:
1) /opt/bin/ipkg update
2) /opt/bin/ipkg remove samba
3) /opt/bin/ipkg install samba2
4) /opt/bin/ipkg install xinetd
5) /opt/etc/init.d/S10xinetd start
6) /opt/etc/init.d/S80samba start
here my attempts:
1) works fine
2) error message - but this is ok as in wl-hdd's firmware samba 2.0.10-security_rollup is already included but not installed by ipkg
3) starts downloading and says "installing to root..." and this is it. i do not get any response from my device for a long time (cannot say how long as i left it alone for several hours). after that i logged in using putty over ssh and wl-hdd was up and running but still no samba 2.2.12 installed.
4) not necessary for wl-hdd as it is already installed
5) works fine
6) /opt/etc/init.d/S80samba does not exist only S97samba exists (which is olegs samba 2.0.10).
i am a little clueless as i am not the linux crack, more a rookie with some theoretical knowledge ;-) and having fun playing with linux (have switched from windows xp to opensuse 10.2 two months ago with a hard cut, no more windows on my hard-disk).
maybe there is a chance to look into some log files but i have no idea where to find them.
any suggestion is welcome
peter
peter,
i think number 2 is your problem. You have not installed samba 2.2 (I think, Oleg has an earlier release with 2.0, which is not vista-compatible.) Try to repeat step two and perhaps try it often. First check, if a proper internet-connection exist.
In my case installing counts about 10 minutes.
I have a WL-500gp with the latest Oleg firmware and I have been trying
to install samba 2:
/opt/bin/ipkg update
/opt/bin/ipkg remove samba
/opt/bin/ipkg install samba2
/opt/bin/ipkg install xinetd
/opt/etc/init.d/S10xinetd start
/opt/etc/init.d/S80samba start
/opt/bin/ipkg remove samba does nothing, I suppose thats because it comes with the firmware itself.
Anyhow samba2 and xinetd install correctly, and I can access SWAT.
I took S97Samba from Oleg out of rhe way and /opt/etc/init.d/S80samba looks OK.
I also disabled Samba Demo mode and hidden read-write share on the browser interface.
I configured samba thru SWAT, and later with 'vi' at /opt/etc/samba/smb.conf on my several tries.
But smbd will not start, either thru SWAT or by executing 'S80Samba start' directly.
It still logs briefly:
[2007/02/23 00:26:05, 0] source/smbd/server.c:main(791)
smbd version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2007/02/23 00:26:05, 1] source/lib/debug.c:debug_message(258)
INFO: Debug class all level = 2 (pid 223 from pid 223)
[2007/02/23 00:26:05, 2] source/param/loadparm.c:do_section(3073)
Processing section "[smbshare]"
But dies at once. I installed 'strace' and used it directly with smbd -D but the output didn't clarify what is happening.
nmbd survives for some time, about 1 minute and dies also.
The output of 'lsmod | sort' is:
Module Size Used by
audio 50680 0 (unused)
ehci-hcd 31660 0 (unused)
et 34912 0 (unused)
ip_nat_starcraft 2224 0 (unused)
ipt_NETMAP 992 2
printer 12676 0 (unused)
scsi_mod 70216 3 [usb-storage sd_mod]
sd_mod 13292 6
soundcore 5320 0 [audio]
usb-storage 62568 3
usb-uhci 28564 0 (unused)
usbcore 83904 1 [usb-storage audio printer ehci-hcd usb-uhci]
videodev 8344 0
wl 423856 0 (unused)
And my smb.conf is:
# Global parameters
[global]
workgroup = MEKTUB
guest account = nobody
server string = ASUS
interfaces = 192.168.1.0/24 127.0.0.1
bind interfaces only = yes
security = SHARE
browseable = yes
guest ok = Yes
guest only = no
log level = 2
max log size = 100
encrypt passwords = no
dns proxy = No
log file = /opt/var/log/samba/log.%m
load printers = No
[smbshare]
path = /opt/smbshare
writeable = yes
browseable = yes
The output of 'df' is:
Filesystem Size Used Avail Use% Mounted on
rootfs 2.9M 2.9M 0 100% /
/dev/root 2.9M 2.9M 0 100% /
/dev/discs/disc0/part1
37G 251M 35G 1% /opt
/dev/discs/disc1/part1
896M 19M 832M 3% /tmp/harddisk
I run out of ideas, by now. Since I have a disk with swap, I am thinking of trying samba3. Or is that a bad idea ?
Mektub
What I would suggest is to run testparam to see if there is any problem with config.
Another way is to copy working config from /etc/smb.conf to /opt/etc/samba.smb.conf when you are in samba demo mode.
testparm output does not detect any errors. I am used to it since now and then I configured Samba in Linux machines.
Then I did: enable samba demo, copied /etc/smb.conf to /opt/etc/samba/smb.conf, disabled samba demo and tried to start samba thru /opt/etc/init.d/S80Samba. smbd starts and exits, nmbd survives 30 seconds and dies.
Perhaps I will try samba3.
Regards,
Mektub
Take attention to passwd file.
smb passwd file = /opt/etc/samba/smbpasswd
try smbpasswd -a admin
and smbpasswd -a nobody
Got a similar problem. I have WL500W with Oleg's firmware 1.9.2.7-8-pre9 and USB HDD 40 GB used as storage and 500 MB swap.
1) goes well
2) says there is no such package so there's nothing to remove
3) says samba2 suggests installing xinetd before hanging up
4) goes fine if done before 3). Actually after the first unsuccessful attempt of installing samba2 I went on installing xinetd first and trying to install samba2 afterwards.
Here is what happens when trying to install samba2 package:
At this point two instances of ipkg eat up the entire CPU and in about 30 seconds the router becomes unresponsive while heavily using the HDD (presumably for swapping RAM). Telnet can't connect afterwards so I couldn't check the logs or see what was happening. A second telnet session running in parallel and showing the output of the "top" command ceases to update terminal as well.Code:[admin@router part1]$ ipkg -V 3 -t /tmp/harddisk/part1/tmp -force-reinstall install samba2_2.2.12-1_mipsel.ipk
pkg_info_preinstall_check: updating arch priority for each package
pkg_info_preinstall_check: update file owner list
best installation candidate for samba2
adding samba2 to providers
samba2 arch=mipsel arch_priority=10 constraint=1
using held package samba2
arch mipsel (priority 10) supported for pkg samba2
Installing samba2 (2.2.12-1) to root...
best installation candidate for xinetd
adding xinetd to providers
xinetd arch=mipsel arch_priority=10 constraint=1
using latest version of installed package xinetd
pkg_depends.c:177: satisfying_pkg=0x10179600
Running script /tmp/harddisk/part1/tmp/ipkg-XXddZ3/samba2-cfUTcy/preinst
installing maintainer scripts
installing data files
extracting data files to /
After several hours of heavy HDD usage everything stops. Still no response to telnet connection attempts, no DHCP, nothing. But pinging the router yields prompt response as well as pinging some external destinations by IP (DNS does not work at this time).
Of course after plugging the router out and back in there are no traces of samba2 or xinetd installed.
Probably next time I'll try to arrange booting the router from the HDD and installing SAMBA v.3 on it.