samba3

s705081

Active Member
Hallo *,

ich habe mir grade einen samba3 server aufgesetzt bekomme aber keinen user eingerichtet.
Erst habe ich es auf die Klassische weise Probiert (ohne passdb backend = tdbsam) und dann versucht user mittels
Code:
smbpasswd -e -a demouser
anzuzlegen.
Brach mit der Fehlermeldung ab:

Code:
New SMB password:
Retype new SMB password:
Unable to open/create TDB passwd
pdb_getsampwnam: Unable to open TDB passwd (/usr/local/private/passdb.tdb)!
NULL guest account!?!?
Failed to initialise SAM_ACCOUNT for user root. Does this user exist in the UNIX password database ?
Failed to modify password entry for user root  .oO(Ich habe nur zum testen den User root benutzt!)

Mein nächster Versuch war dann mit der Zeile
Code:
passdb backend = tdbsam
und mit dem befehl
Code:
pdbedit -a -u neo
Das geht auch nicht.

Fehler:
Code:
root@fiona$ pdbedit -a -u root
NULL guest account!?!?
could not create account to add new user root
root@fiona$

Kann irgend jemand etwas mit diesem Fehler anfangen? Oder mir sagen was für mist ich gebaut habe?

Gruss Sven

smb.conf:


Code:
#
#
#

#======================= Global Settings =====================================
[global]
workgroup = home
server string = fiona.home
security = user
hosts allow = 192.168.100. 127.

load printers = yes
printing = cups
printcap name = /etc/printcap.cups

log file = /var/log/samba/log.%m

max log size = 50

passdb backend = tdbsam

socket options = TCP_NODELAY

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
min password length = 8
guest account =


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
read only = no


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[HPL1200]
comment = All Printers
path = /var/spool/samba
# Set public = yes to allow user 'guest account' to print
guest ok = yes
read only = no
printable = yes
guest account =
printer name = HPL1200
admin users = neo
hosts allow = 192.168.100.*
 
Weil swat den gleichen mist mir erzählt
Code:
Failed to initialise SAM_ACCOUNT for user neo. Does this user exist in the UNIX password database ?
.oO(ich bin grad mit dem user neo eingeloggt)
 
Hi!
gib dem guest doch mal nen Namen und versuchs nochmal!
"guest account = ' der name des accounts' " oder schmeiss es raus!

gruss
 
komisch. auf jeden fall würde ich die tdbsam verwenden und nicht mehr die etwas angestaubte smbpasswd.

wieso root nicht geht weiss ich auch ned so genau. aber die anderen user sind in der /etc/passwd vorhanden? falls nicht, user zuerst mit adduser oder pw anlegen.

die tdbsam unter /usr/local/private/ ist vorhanden?

ansonsten hilft dir vielleicht auch mein (leider nicht mehr topaktuelles ;'( ) howto evtl. weiter.

http://www.bsdforen.de/showthread.php?t=2174&page=1

Gruss
Highfish
 
Zurück
Oben