Log in

Bekijk de volledige versie : SAMBA 2 will not run



rj.2001
10-05-2007, 23:14
Hello,

I would use SAMBA2 with SWAT on my WL500gP.
SAMBA demo mode is disabled in the web interface.
I install SAMBA2 with:

ipkg update
ipkg remove samba
ipkg install samba2
ipkg install xinetd

I configure the /opt/etc/xinetd.d/swat for the user admin.
SWAT starts and works fine with http://192.168.1.1:901
I configure the SAMBA as I like.
Here is my smb.conf:

# Global parameters
[global]
workgroup = MATRIX
server string = WL500gP Samba Optware Server
security = SHARE
encrypt passwords = Yes
log file = /opt/logs/samba.log
max log size = 50
load printers = No
dns proxy = No

[OPT$]
comment = OPT on WL500gP
path = /opt
force user = admin
read only = No
guest ok = Yes

If I start the SAMBA via the /opt/etc/init.d/S80samba the server doesn't start.
what I can see for a short time (~2 secs) with the ps command is:

367 admin 1188 S /opt/sbin/nmbd -D
after that the nmbd process is no more visible.
There are my installed ipkg packages:

bzip2 - 1.0.4-1 - Very high-quality data compression program
cron - 4.1-5 - Standard vixie cron, with cron.d addition
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
ipkg - 0.99.149-2 - lightweight package management system
libdb - 4.2.52-3 - Berkeley DB Libraries
libstdc++ - 0.2.0-6 - =Standard C++ library, wrapped for uClibc++
libuclibc++ - 0.1.12-4 - C++ standard library designed for use in embedded systems
libxml2 - 2.6.27-2 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
libxslt - 1.1.20-1 - An XML Stylesheet processor based on libxml2
nano - 2.0.6-1 - A pico like editor
ncurses - 5.6-1 - NCurses libraries
openssl - 0.9.7m-1 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
pcre - 6.7-5 - Perl-compatible regular expression library
php - 5.2.2-1 - The php scripting language
php-thttpd - 2.25b-5.2.2-4 - php-thttpd is thttpd webserver with php support
samba2 - 2.2.12-1 - Lightweight Samba suite provides file and print services to SMB/CIFS clients.
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.


and that are the result of my mount:

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/part2 on /opt type ext3 (rw)
/dev/discs/disc1/part1 on /tmp/harddisk type ext3 (rw,noatime)

I can't start the new SAMBA2 (with SWAT). The SAMBA version that comes with Olegs 1.9.2.7-7g, works fine! But not the SAMBA version installed with

ipkg install samba2

Have any one an idea to solve this problem?

oleo
11-05-2007, 10:44
[global]
interfaces = br0
bind interfaces only = yes
workgroup = WORKGROUP
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = yes
log level = 1
log file = /opt/var/log/smbd-%m.log
max log size = 100
local master = true
preferred master = true
os level = 65
encrypt passwords = no
preserve case = yes
short preserve case = yes
server string = "wl500g"
[opt$]
path = /opt
writable = yes
force user = admin
browseable = no
comment = "RW"

Fazoletti
11-05-2007, 19:11
Same problem, oleo's smb.conf also won't work on wl-hdd.
Some people reported a downgrade to the 1.9.2.7-7c would help... but not for me :(

rj.2001
11-05-2007, 20:54
Same result, SAMBA2 will not start.
And now?
I test also this smb.conf with version 1.9.2.7-7c and all the same installed packages... doesn't work.

:mad:

rj.2001
11-05-2007, 23:35
@Oleo:
is the path to the nmbd and smbd: /opt/sbin/ ?
or is /usr/sbin/ right?
I think the second path is the path to the samba provided with the firmware.
Can you look in your SAMBA startup script? And tell me what the correct value is?
And the next: is it recommendable to start samba via xinet?

hejira
25-05-2007, 16:47
Have you guys found a solution yet? I have the same problem with the samba2 package. I've found out that starting smbd from /opt/sbin in interactive mode (parameter -i) retruns a "bad system call" error message. But I don't know what to do with it...

oleo
25-05-2007, 21:49
read instructions at http://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild and http://www.nslu2-linux.org/wiki/Optware/Samba2

Wessie
18-07-2007, 11:10
I had the same problem and solved it by setting the hostname.

b1848
07-08-2007, 08:07
Wessie!

How (or where) can you set the hostname is samba2???

Wessie
15-08-2007, 11:54
Wessie!

How (or where) can you set the hostname is samba2???

You can set the hostname via the webinterface by selecting [IP Config] -> [WAN & LAN] -> [LAN IP Setting].