samba: guest ok funzt nicht

Post Reply
Message
Author
Rossi

samba: guest ok funzt nicht

#1 Post by Rossi »

Moin,

hab hier ein kleines Problem. Hab einen reinen Prinserver mit samba und cups am laufen. Wenn ich jetzt versuche, mir einen Drucker zu mappen, bekomme ich ein "permission denied", trotz "guest ok" in der printers Sektion.

In der Logdatei steht dann auch, das mein NT Name nicht in der smbpasswd gefunden werden kann. Ist ja eigentlich auch richtig, aber ich will ja gar keine Authentifizierung. Deshalb auch "guest ok".
Der account "gast", auf den der "guest account" gemapped wird, ist natürlich in /etc/passwd vorhanden. Hat momentan auch loginshell und homedir.


[global]
server string = Vectorlinux v2.5
fstype = XFS
preserve case = yes
interfaces = 192.168.1.241/255.255.255.0
bind interfaces only = yes
client code page = 850
character set iso8859-15
max connections = 8
security = user
smb passwd file = /var/samba/private/smbpasswd
unix password sync = no
netbios name = bsdws01
workgroup = GNUNIX
time server = yes
wins proxy = no
wins support = no
dns proxy = no
name resolve order = host bcast
max log size = 4096
domain master = no
local master = no
domain logons = no
os level = 2
encrypt passwords = yes
follow symlinks = no
wide links = no
log file = /var/log/samba/%m.log
lock directory = /var/samba/locks/
hide dot files = yes
dos filemode = no
nt acl support = no
force security mode = 777
force directory security mode = 777
inherit permissions = no
fake oplocks = no
blocking locks = yes
locking = yes
kernel oplocks = no
level2 oplocks = no
lanman auth = yes
lm announce = no
printing = cups
printcap name = /etc/printcap
load printers = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest account = gast
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr -P %p -o raw %s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j

Auszug aus dem Errorlog ("klausr" ist der NT Benutzername):

[2002/05/15 17:29:48, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1344)
pdb_getsampwnam: search by name: klausr
[2002/05/15 17:29:48, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(167)
startsmbfilepwent_internal: opening file /var/samba/private/smbpasswd
[2002/05/15 17:29:48, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(485)
getsmbfilepwent: end of file reached.
[2002/05/15 17:29:48, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(256)
endsmbfilepwent_internal: closed password file.
[2002/05/15 17:29:48, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'klausr' in passdb.
[2002/05/15 17:29:48, 2] smbd/reply.c:reply_sesssetup_and_X(963)
NT Password did not match for user 'klausr'!
[2002/05/15 17:29:48, 2] smbd/reply.c:reply_sesssetup_and_X(973)
Defaulting to Lanman password for klausr
[2002/05/15 17:29:48, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1344)
pdb_getsampwnam: search by name: klausr
[2002/05/15 17:29:48, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(167)
startsmbfilepwent_internal: opening file /var/samba/private/smbpasswd
[2002/05/15 17:29:48, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(485)
getsmbfilepwent: end of file reached.
[2002/05/15 17:29:48, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(256)
endsmbfilepwent_internal: closed password file.
[2002/05/15 17:29:48, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'klausr' in passdb.
[2002/05/15 17:29:48, 1] smbd/reply.c:reply_sesssetup_and_X(989)
Rejecting user 'klausr': authentication failed
[2002/05/15 17:29:48, 3] smbd/error.c:error_packet(91)
error string = No such file or directory
[2002/05/15 17:29:48, 3] smbd/error.c:error_packet(110)
error packet at smbd/reply.c(991) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
[2002/05/15 17:29:48, 0] smbd/process.c:smb_dump(626)
created /tmp/SMBsesssetupX.46.resp len 39
[2002/05/15 17:29:48, 5] lib/util.c:show_msg(275)

Rossi

Re: samba: guest ok funzt nicht

#2 Post by Rossi »

Ich glaube, ich habs: "map to guest = Bad User" fehlt. Kann jetzt aber erst morgen testen.

P.S.: Hätte eigentlich in "Netzwerk" gehört.

Post Reply