PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba Benutzer



Urkommunist
07.04.04, 13:00
Hab Fedora 1c mit dem 2.6.5 kernel ohne grafische Oberfläche laufen.
Samba läuft auch schon und freigaben hab ich auch gemacht aber leider funkt das mit den Benutzer noch nicht so wie ich will.
Meine Systembenutzer hab ich schon erstellt aber wenn ich die noch für samba freischalten will klappt des net.

Hier hab ich den Auszug aus dem versuch. Mit Webmin hab ich es auch schon probiert doch der bringt auch einen Fehle



[root@dns root]# smbpasswd -a sozi
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: file <Path_to_smbpasswd>/smbpasswd did not exist. Couldn't create new one. Error was: Datei oder Verzeichnis nicht gefundenUnable to open passdb database.
startsmbfilepwent_internal: file <Path_to_smbpasswd>/smbpasswd did not exist. Couldn't create new one. Error was: Datei oder Verzeichnis nicht gefundenstartsmbfilepwent_internal: too many race conditions creating file <Path_to_smbpasswd>/smbpasswd
add_smbfilepwd_entry: unable to open file.
Failed to add entry for user sozi.
Failed to modify password entry for user sozi

LKH
07.04.04, 13:10
Hi,

deine smbpasswd Datei existiert nicht. Leg die doch mal an (touch <Path_to_smbpasswd>/smbpasswd).

Hoffe es hilft,

LKH

Urkommunist
07.04.04, 16:31
Aber in /etc/samba hab ich schon die datei smbpasswd aber es geht immer noch nicht.



Webmin bringt folgenden Fehler:




Benutzer konvertieren fehlgeschlagen :

params.c:Parameter() - Ignoring badly formed line in configuration file: smbpasswd -a admin
could not create account to add new user -s
:confused:

LKH
07.04.04, 18:44
Hi,

ich hoffe mal, dass das nichts mit dem 2.6er Kernel zu tun hat; da fehlt mir jede Erfahrung im Zusammenhang mit Samba. Wie sehen denn die Rechte an /etc/samba bzw der smbpasswd aus?

LKH

jado
07.04.04, 19:53
sonst definier doch mal in der smb.conf
"passdb backend = smbpasswd:/etc/samba/smbpasswd"

Urkommunist
08.04.04, 09:16
also ich hab die line hinzugefügt in der smb.conf

wenn ich es wieder versuche komt dies:



getsmbfilepwent: malformed password entry (no :)
getsmbfilepwent: malformed password entry (no :)
Added user sozi.



aber als samba user ist er nicht eingetragen, bei webmin zeigt auch nichts an!

Urkommunist
08.04.04, 09:18
Was mir gerade aufgefallen ist, beim starten kommt folgender Fehler!




E325: ATTENTION
Found a swap file by the name ".smb.conf.swp"
owned by: root dated: Tue Apr 6 19:32:40 2004
file name: /etc/samba/smb.conf
modified: YES
user name: root host name: dns.lan.de
process ID: 2422
While opening file "smb.conf"
dated: Thu Apr 8 08:07:40 2004
NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r smb.conf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".smb.conf.swp"
to avoid this message.
"smb.conf" 214L, 8185C

Urkommunist
08.04.04, 09:22
Komisch, es funktioniert. Ich kann mich anmelden mit meinem Benutzer, anscheinend hat das konvertieren doch funktioniert!!!!

Aber webmin zeigt kein Benutzer an!!
Also ich werde daraus nicht schlau.
Egal, danke für eure Hilfe.

P.S.: Er lahmt zwar ohne Ende aber das liegt wahrscheinlich an etwas anderen!!