View previous topic :: View next topic |
Author |
Message |
chibi n00b
Joined: 27 Nov 2005 Posts: 41
|
Posted: Tue Jul 18, 2006 10:58 am Post subject: samba-3.0.23 cannot startup on ~x86 |
|
|
this is the log from /var/log/samba/log.smbd
it says it cannot find password db backend "guest".In /etc/samba/smb.conf, there is "passdb backend = guest"
Quote: |
[2006/07/18 18:53:35, 0] smbd/server.c:main(847)
smbd version 3.0.23 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/07/18 18:53:35, 0] passdb/pdb_interface.c:make_pdb_method_name(174)
No builtin nor plugin backend for guest found
[2006/07/18 18:53:35, 0] lib/util.c:smb_panic(1592)
PANIC (pid 32400): pdb_get_methods_reload: failed to get pdb methods for backend guest
[2006/07/18 18:53:35, 0] lib/util.c:log_stack_trace(1699)
BACKTRACE: 1 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x29) [0x801edb42]
[2006/07/18 18:53:35, 0] lib/fault.c:dump_core(173)
dumping core in /var/log/samba/cores/smbd
|
Last edited by chibi on Thu Jul 20, 2006 5:27 am; edited 1 time in total |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Tue Jul 18, 2006 2:02 pm Post subject: |
|
|
AFAIK passdb backend is used for ldap.
Have you tried to comment out the line? |
|
Back to top |
|
|
chibi n00b
Joined: 27 Nov 2005 Posts: 41
|
Posted: Tue Jul 18, 2006 3:02 pm Post subject: |
|
|
if i comment it out, it could startup. But no one could connect samba because of no passdb.
if i change to other passdb backend, anyone could not connect without username & password. |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Tue Jul 18, 2006 10:19 pm Post subject: |
|
|
Have you set up any smb users? What does your s.b.conf look like?? Give us some clues. |
|
Back to top |
|
|
chibi n00b
Joined: 27 Nov 2005 Posts: 41
|
Posted: Wed Jul 19, 2006 1:36 am Post subject: |
|
|
my samba has worked well until i upgraded to 3.0.23
testparm output:
Quote: | testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[cartoons]"
Processing section "[movies]"
Processing section "[stuff]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
dos charset = UTF-8
display charset = UTF-8
workgroup = TECH
server string = wahaha (Your ip is %I)
interfaces = 192.168.208.77
security = SHARE
passdb backend = guest // log says this backend is missing
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
load printers = No
dns proxy = No
invalid users = root
hosts allow = 192.168.208.1/24
|
|
|
Back to top |
|
|
anidabi Tux's lil' helper
Joined: 05 Feb 2005 Posts: 102 Location: Finland
|
Posted: Tue Jul 25, 2006 10:05 am Post subject: |
|
|
I have same problem, any workarounds? _________________ How do you do the things you do... |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Tue Jul 25, 2006 5:08 pm Post subject: |
|
|
From which version did you upgrade?
You could try:
Code: |
passdb backend = ldapsam_compat
|
but i think samba should work finde without the passdb backend variable set. just leave it out |
|
Back to top |
|
|
anidabi Tux's lil' helper
Joined: 05 Feb 2005 Posts: 102 Location: Finland
|
Posted: Tue Jul 25, 2006 7:28 pm Post subject: |
|
|
elgato319 wrote: | From which version did you upgrade?
You could try:
Code: |
passdb backend = ldapsam_compat
|
but i think samba should work finde without the passdb backend variable set. just leave it out |
Noup, doesn't work for me. Neither does just leaving it out!
Well, actually samba starts when I comment the whole line, but I can't connect the network. _________________ How do you do the things you do... |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Tue Jul 25, 2006 8:24 pm Post subject: |
|
|
passdb backend is used to set the type of password database in use. Setting it to guest is meaningless and I'm not suprised it doesn't work.
If you want a samba server that can be accessed from windows XP PCs without needing a password then the following configuration is a good example.
Code: | [global]
workgroup=WORKGROUP
map to guest = bad user
wins support = yes
domain master = yes
local master = yes
os level = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
server string = My Samba Server
[storage]
path = /mnt/storage
guest ok = yes
writeable = yes
create mask = 650
directory mask = 750
force user = dave
force group = users
|
dave is a unix user who has full access to the /mnt/storage directory
Don't use security=share it is very outdated and probably doesn't do what you expect.
Your hosts allow should be 192.168.200.0/24 |
|
Back to top |
|
|
anidabi Tux's lil' helper
Joined: 05 Feb 2005 Posts: 102 Location: Finland
|
Posted: Thu Jul 27, 2006 10:20 am Post subject: |
|
|
nobspangle wrote: | passdb backend is used to set the type of password database in use. Setting it to guest is meaningless and I'm not suprised it doesn't work.
If you want a samba server that can be accessed from windows XP PCs without needing a password then the following configuration is a good example.
Code: | [global]
workgroup=WORKGROUP
map to guest = bad user
wins support = yes
domain master = yes
local master = yes
os level = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
server string = My Samba Server
[storage]
path = /mnt/storage
guest ok = yes
writeable = yes
create mask = 650
directory mask = 750
force user = dave
force group = users
|
dave is a unix user who has full access to the /mnt/storage directory
Don't use security=share it is very outdated and probably doesn't do what you expect.
Your hosts allow should be 192.168.200.0/24 |
No no no, it just doesn't work for me. It was perfect before upgrading it. No password no nothing it just flew to my shares after booting.
Can you be a littlebit more specific with the configuration, if I want to connect to my shares without password? Because with your example snippet of configuration doesn't work for me. It complains that my network is not accessible plaa plaa. And why you say my host allow should be 192.168.200.0/24 if I don't even have such network? And what "security =" should be if not share? I have tried only user and share.
Also I tried to make my shares accessible with password. I read this tutorial, but no go! And because what you said about using security=share and upgrading my samba, this tutorial seem to be outdated. That is the example I have used to make my previous configuration to work, until now... _________________ How do you do the things you do... |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Thu Jul 27, 2006 2:36 pm Post subject: |
|
|
Well..
could you post your complete smb.conf?
This way we can modify it for you.
A hint regarding your network class/subnet would be nice too |
|
Back to top |
|
|
anidabi Tux's lil' helper
Joined: 05 Feb 2005 Posts: 102 Location: Finland
|
Posted: Thu Jul 27, 2006 3:53 pm Post subject: |
|
|
Ok, here it goes! This was my working configuration using samba-3.0.20b. It has some test lines commented, which I tried with no luck.
Code: |
# Sample configuration file for the Samba suite for Gentoo GNU/Linux
# Please see the manual page for smb.conf for detailed description of
# every parameter.
[global]
#Do something sensible when Samba crashes: mail the admin a backtrace
#panic action = /usr/share/samba/panic-action %d
log file = /var/log/samba/log.%m
max log size = 100
share modes = yes
dos charset = CP850
#dos charset = ISO8859-15
unix charset = ISO8859-15
display charset = ISO8859-15
# Change this for the workgroup your Samba server will part of
netbios name = Gentoo-2GHz
workgroup = WINDOWSSUCKS
server string = Blue Gene
# interface options
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
#socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
time server = yes
interfaces = lo eth0
bind interfaces only = yes
# domain & local master browser, coz we're dealing with Win2k and xp
os level = 250
prefered master = yes
domain master = yes
local master = yes
domain logons = no
wins support = yes
# do not show files starting with dots
hide dot files = yes
# Now we are going to specify who we allow, we are afterall
# very security conscience, since this configuration does not use passwords!
hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0
# Other options for this are SHARE, USER, DOMAIN, ADS, and SERVER
# The default is user
security = share
# No passwords, so we're going to use a guest account!
#invalid users = root
#map to guest = bad user
guest account = Bill
guest ok = yes
# Passwords are encrypted by default. This way the latest Windows 95 and NT
# clients can connect to the Samba server with no problems.
encrypt passwords = true
passdb backend = smbpasswd guest
#passdb backend = ldapsam_compat
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
# Setting up virus scanner for Samba 3.x
#vfs object = vscan-clamav
#vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# We are going to use cups, so we are going to put it in here ;-)
#printcap name = cups
#printing = cups
load printers = no
[1_STUFF]
comment = Bills stuff
path = /stuff
browseable = yes
public = yes
guest ok = yes
writable = yes
[2_MUSIC]
comment = Bills music
path = /music
browseable = yes
public = yes
guest ok = yes
writable = yes
#[homes]
# Now we setup our print drivers information!
#[print$]
#comment = Printer Drivers
# this path holds the driver structure
#path = /etc/samba/printer
#guest ok = yes
#browseable = yes
#read only = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
#write list = root anidabi
# Now we'll setup a printer to share, while the name is arbitrary
# it should be consistent throughout Samba and CUPS!
#[HPDeskJet930C]
#comment = HP DeskJet 930C Network Printer
#printable = yes
#path = /var/spool/samba
#public = yes
#guest ok = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
#printer admin = root anidabi
# Now we setup our printers share. This should be
# browseable, printable, public.
#[printers]
#comment = All Printers
#browseable = yes
#printable = yes
#writable = no
#public = yes
#guest ok = yes
#path = /var/spool/samba
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
#printer admin = root Bill
|
Any ideas how to make it work again. Also if anyone has any good improvements or if you spot something deprecated options, feel free to say. _________________ How do you do the things you do... |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Fri Jul 28, 2006 6:30 am Post subject: |
|
|
Ok, did some mixing with my config.
Add the user "bill" with smbpasswd and it should work.
Code: |
[global]
hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0
log file = /var/log/samba/log.%m
dns proxy = no
load printers = no
smb passwd file = /etc/samba/private/smbpasswd
server string = Samba Server %v
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
security = user
invalid users = root
max log size = 50
dos charset = 850
unix charset = ISO8859-15
display charset = ISO8859-15
use sendfile = no
large readwrite = no
max xmit = 16644
netbios name = Gentoo-2GHz
workgroup = WINDOWSSUCKS
server string = Blue Gene
interfaces = lo eth0
bind interfaces only = yes
hide dot files = yes
guest ok = no
[1_STUFF]
comment = Stuff
path = /stuff
public = yes
valid users = Bill
writeable = yes
printable = no
browseable = yes
[2_MUSIC]
comment = Music
path = /music
public = yes
valid users = Bill
writeable = yes
printable = no
browseable = yes
|
|
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Fri Jul 28, 2006 7:41 am Post subject: |
|
|
Code: | [global]
netbios name = Gentoo-2GHz
workgroup = WINDOWSSUCKS
server string = Blue Gene
map to guest = bad user
wins support = yes
domain master = yes
local master = yes
os level = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
server string = My Samba Server
[1_STUFF]
comment = Bills stuff
path = /stuff
guest ok = yes
writable = yes
force user = Bill
[2_MUSIC]
comment = Bills music
path = /music
guest ok = yes
writable = yes
force user = Bill |
A few things to note
If you are using the guest account you do not need to create any samba users
The reason why I use the "force user" setting is that it means I can use different unix users for different shares, without need a password or anything else in windows. e.g. Shares that point to my apache directories use "force user = apache"
There is very little wrong with your orginal config file,
I don't recommend using "security = share" just because this isn't how windows works anymore and it doesn't mean what you think it means. (I disagree with the man page on this)
public = yes is the same as guest ok = yes so you only need one of them.
There are a few redundant lines "share modes", "hide dot files", "encrypt passwords"
The line "passdb backend = smbpasswd guest" should not have the "guest" on the end, alternativley leave it out all together as it isn't needed since "smbpasswd" is the default
Samba is much easier than people think when all you want to do is share a few directories for public access. |
|
Back to top |
|
|
anidabi Tux's lil' helper
Joined: 05 Feb 2005 Posts: 102 Location: Finland
|
Posted: Mon Jul 31, 2006 4:30 pm Post subject: |
|
|
nobspangle wrote: | Code: | [global]
netbios name = Gentoo-2GHz
workgroup = WINDOWSSUCKS
server string = Blue Gene
map to guest = bad user
wins support = yes
domain master = yes
local master = yes
os level = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
server string = My Samba Server
[1_STUFF]
comment = Bills stuff
path = /stuff
guest ok = yes
writable = yes
force user = Bill
[2_MUSIC]
comment = Bills music
path = /music
guest ok = yes
writable = yes
force user = Bill |
A few things to note
If you are using the guest account you do not need to create any samba users
The reason why I use the "force user" setting is that it means I can use different unix users for different shares, without need a password or anything else in windows. e.g. Shares that point to my apache directories use "force user = apache"
There is very little wrong with your orginal config file,
I don't recommend using "security = share" just because this isn't how windows works anymore and it doesn't mean what you think it means. (I disagree with the man page on this)
public = yes is the same as guest ok = yes so you only need one of them.
There are a few redundant lines "share modes", "hide dot files", "encrypt passwords"
The line "passdb backend = smbpasswd guest" should not have the "guest" on the end, alternativley leave it out all together as it isn't needed since "smbpasswd" is the default
Samba is much easier than people think when all you want to do is share a few directories for public access. |
Thanks a lot for the help. Now my samba is up and running perfectly. So I had a plenty of redundant options in my smb.conf file, which made me confused.
I don't know if it's because of the new version of samba or some of the changet options, but file browsing is a bit faster now. Transfer rates didn't change, but I didn't even expect it. _________________ How do you do the things you do... |
|
Back to top |
|
|
|