Delete that log and try again... does the same errors appear again?
What user do you have on the router? admin or root?
I have the following problem. I have installed the new samba as per the tutorials, but my smbd process doens start with the options as per /opt/etc/samba/smb.conf
143 admin 408 S /opt/sbin/cron
148 admin 732 S dropbear
149 admin 576 S -sh
184 admin 732 S dropbear
185 admin 576 S -sh
189 admin 328 S tail -f /opt/var/log/smbd.log
264 admin 1392 S /opt/sbin/nmbd -D -n homesweethome2 -o -l /tmp -s /opt/etc/samba/smb.conf
275 admin 2072 S [smbd]
276 admin 2008 S [smbd]
283 admin 720 S dropbear
284 admin 556 S -sh
288 admin 404 R ps
in the /opt/var/log/smbd.log I can see the following:
[2007/12/21 20:04:53, 0] source/auth/auth_util.c:get_root_nt_token(501)
get_root_nt_token: getpwnam"root") failed!
[2007/12/21 20:04:53, 0] source/auth/auth_util.c:get_root_nt_token(501)
get_root_nt_token: getpwnam"root") failed!
[2007/12/21 20:04:53, 0] source/services/services_db.c:svcctl_init_keys(420)
svcctl_init_keys: key lookup failed! (WERR_ACCESS_DENIED)
does anybody have any ideas?
thanks
Delete that log and try again... does the same errors appear again?
What user do you have on the router? admin or root?
Hello
For kamikaze you need to make a little different startup script.
Im not a expert so correct the script if I got something wrong but it works for me.
Also you need to put it into /etc/init.d or /opt/etc/init.d/ and ofcouse enable it with : '/etc/init.d/scriptname enable. Then it goes to rc.d as SXXsamba.#!/bin/sh /etc/rc.common
START=50
STOP=50
start()
{
echo -n "Starting samba "
/opt/sbin/nmbd -D
/opt/sbin/smbd -D
echo "Done."
}
stop()
{
echo -n "Stopping samba: "
killall smbd
killall nmbd
echo "Done."
}
restart()
{
stop
sleep 2
start
}
Also remember about putting the START value to your specific config if your share is on usbhdd
Example: If your hdd mount is START=55 then samba value for START must be >55. Maybe it would work if you set below but why try :P
Hi, I just upgraded samba as per this info below, but I can not access (I can see them) all these folders, it would not let me from Windows.
here is my config:
Any idea why?Code:Êîä: [global] workgroup = HOME guest account = nobody security = share browseable = yes guest ok = yes guest only = no log level = 0 log file = /opt/logs/smbd.log max log size = 100 encrypt passwords = yes dns proxy = no netbios name = WL500gP server string = ASUS WL500g Premium socket options = WL500g Premium [share$] path=/opr/share writeable = yes browseable = yes public = yes [harddisk$] path=/opt/harddisk writeable = yes browseable = yes public = yes [www] path=/tmp/harddisk/www writeable = yes browseable = yes public = yes [ftp_pvt] path=/tmp/harddisk/ftp_pvt writeable = yes browseable = yes public = yes [ftp_pub] path=/tmp/harddisk/ftp_pub writeable = yes browseable = yes public = yes [logs] path=/opt/logs writeable = yes browseable = yes public = yes
Thanks.
you should use an account that has access to the files.Code:guest account = nobody
nobody is not a good choice.
try admin if you do not have any security worries.
wengi
Übersicht aller HowTos --- HowTo Overview (mostly german)
WL-HDD mit diesem Setup. --- WL-HDD with this setup.
Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)
Followed all the steps. Tried it in firmware xxx - 7g and xxx - 8, with a number of things that I thought might help, but no luck. It seems that any (all) the newly created files in the /opt/sbin dir are 'not found'??
Any ideas?
output:
/opt/etc/init.d/S08samba: /opt/etc/init.d/S08samba: 21: /opt/sbin/nmbd: not found
Starting smbd:
/opt/etc/init.d/S08samba: /opt/etc/init.d/S08samba: 23: /opt/sbin/smbd: not found
ls-l /opt/sbin
-rwxr-xr-x 1 admin root 7696 Jan 30 02:03 accept
-rwxr-xr-x 1 admin root 8072 Jan 24 13:16 cupsaddsmb
-rwxr-xr-x 1 admin root 7876 Jan 24 13:16 cupsctl
-rwxr-xr-x 1 admin root 404272 Jan 24 13:16 cupsd
lrwxrwxrwx 1 admin root 6 Jan 30 02:03 cupsdisable
lrwxrwxrwx 1 admin root 6 Jan 30 02:03 cupsenable -
-rwxr-xr-x 1 admin root 32272 Jan 24 13:16 cupsfilter
-rwxr-xr-x 1 admin root 24064 Jan 24 13:16 lpadmin
-rwxr-xr-x 1 admin root 8756 Jan 24 13:16 lpc
-rwxr-xr-x 1 admin root 8044 Jan 24 13:16 lpinfo
-rwxr-xr-x 1 admin root 7096 Jan 24 13:16 lpmove
-rwxr-xr-x 1 admin root 26956 Jan 25 07:59 mount.cifs
lrwxrwxrwx 1 admin root 17 Jan 30 02:05 mount.smbfs
smbmount
-rwxr-xr-x 1 admin root 1307664 Jan 25 07:59 nmbd
lrwxrwxrwx 1 admin root 6 Jan 30 02:03 reject -> ac
-rwxr-xr-x 1 admin root 4555052 Jan 25 07:59 smbd
-rwxr-xr-x 1 admin root 2680364 Jan 25 07:59 swat
Thanks, it works, now I have connected NTFS 1TB HD to my WL500gP via usb hub it was identified as
/dev/scsi/host1/bus0/target0/lun0/part1
It works for me fine, but it loos like long file names are not supported?
Any idea how this can be fixed?ashwin~1 cowboy~1 t sleepy~1 wd_mac~1
docume~1
Thanks.
Last edited by piezomotor; 31-01-2008 at 01:23.
Hi,
I can not start S08samba at all. I try
./S08samba
and it says "starting samba" and "starting nmbd" but it doesn't appear in list when I type ps.
Is it possible that its not enough mamory?
It would show up as "[smbd]", you sure it's not there?
You can also check by running `netstat -tln`, it should show something listening to port 139, like this:
If it's really not starting then look in /opt/var/log/samba, there are some log files there. Check at the end of them, there might be a clue of what's going on.Code:tcp 0 0 192.168.123.254:139 0.0.0.0:* LISTEN
Why do you worry about memory, you doing anything to consume a lot of it? Like running lots of other big programs? Usually Samba should work without a problem.
Last edited by wirespot; 12-02-2009 at 07:24.
How do you make this work with logons?
I want to password protect my share since I'm on a shared WLAN. Haven't been able to logon from my Win7 box. Applied all of the registry hacks here, and elsewhere...
How does your smb.conf look like for successful login-support? Do you use ./smbpasswd?
Here's a working /opt/etc/samba/smb.conf. I'm assuming you have an USD HDD or flash stick mounted at /opt and an extended system installed there.
This smb.conf will let you share a certain directory with a user and password set in /opt/etc/samba/smbpasswd with the smbpasswd command-line util. Adjust the "hosts allow" and "socket address" to match your LAN configuration. The first says which IP's are allowed to connect and the second what IP to listen on (the router LAN IP).
To mount the share, I do this (from Linux):Code:[global] workgroup = WORKGROUP server string = Samba Optware Server hosts allow = 192.168.123. printcap name = /etc/printcap load printers = no log file = /opt/var/log/samba/log.%m max log size = 50 security = share encrypt passwords = yes smb passwd file = /opt/etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 interfaces = br0 socket address = 192.168.123.254 dns proxy = no preserve case = yes [files] comment = Files path = /opt/files valid users = smbuser public = no writable = yes printable = no create mask = 0660 directory mask = 6770
~/.samba/auth holds the user and password which you have set with smbpasswd on the router, in the following format (so I don't have to type it manually):Code:smbmount //192.168.123.254/files ~/router/ \ -o credentials=~/.samba/auth,dom=WORKGROUP,\ uid=localuser,gid=localgroup,\ file_mode=0660,dir_mode=0770
Take care to chmod 600 ~/.samba/auth.Code:username=smbuser password=smbpass
I have Asus Wl-500gp router with Samba 2 built in the firmware (Oleg version WL500gp-1.9.2.7-10). This Samba was working well. The installation of Samba 3.6
was without problems and smbd and nmbd are automatically started after reboot:Code:ipkg install samba36
Here is also the log from /opt/var/samba/log.nmbd file after rebooting the router:Code:151 admin 1976 S /opt/sbin/nmbd -D 153 admin 3600 S /opt/sbin/smbd -D 165 admin 3480 S /opt/sbin/smbd -D
and log.smbd file:Code:[2013/06/01 13:23:09, 0] nmbd/nmbd.c:861(main) nmbd version 3.6.15 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2013/06/01 13:23:09, 1] param/loadparm.c:9670(lp_load_ex) WARNING: The security=share option is deprecated [2013/06/01 13:23:09, 1] param/loadparm.c:9670(lp_load_ex) WARNING: The security=share option is deprecated
I also tried the optionCode:[2013/06/01 13:23:10, 0] smbd/server.c:1072(main) smbd version 3.6.15 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2013/06/01 13:23:10, 1] param/loadparm.c:9670(lp_load_ex) WARNING: The security=share option is deprecated [2013/06/01 13:23:10.290456, 1] param/loadparm.c:9670(lp_load_ex) WARNING: The security=share option is deprecated
to suppress the warning message but the result was the same - in Windows XP or 7 no connection to Samba share is established. The same connection which was working with Samba 2.Code:security = user
Here is my smb.conf file:
Would you have an idea why it is not working? What can I try or check? I have no more ideas.Code:[global] workgroup = WORKGROUP guest account = admin security = share map to guest = Bad User 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 dns proxy = no netbios name = ASUS_SAMBA server string = Asus WL-500W socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8192 bind interfaces only = yes interfaces = 192.168.1.2/24 hosts allow = 192.168.1.2/255.255.255.0 printcap name = /dev/null load printers = no printing = bsd [z] path = /tmp/mnt/disc1_3 writeable = yes browseable = yes force user = admin