[Samba] RE: samba digest, Vol 1 #1814 - 19 msgs

Ulrich Kohlhase Ulrich.Kohlhase at t-online.de
Sat Nov 2 02:09:01 GMT 2002


Fred,

> smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting 
> User nobody !

Did you compile the samba sources by yourself with "--with-pam" or
"--with-pam_smbpass" ? If so, better recompile the latest version 2.2.6
without pam support, since you most likely won't need pam.
Optionally change the file "samba" in "/etc/pam.d" to something like:

#%PAM-1.0
auth       required     /lib/security/pam_permit.so
account    required     /lib/security/pam_permit.so
password   required     /lib/security/pam_permit.so
session    required     /lib/security/pam_permit.so

Simplify your smb.conf and make sure "guest account" is set in both
"passwd" and "smbpasswd":

--------------------------------------
[global]
    workgroup = KUIPERS_HOME
    server string = Samba Server %v
    printing = cups
    log file = /var/log/samba/log.%m
    max log size = 50
    encrypt passwords = no
    security = share
    map to guest = Bad User
    guest account = <smbguest>
    guest ok = Yes
    ^^^^^^^^^^^^^^
    smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    allow hosts = 192.168.0.
    os level = 33
...

[printers]
    comment = All Printers
    path = /var/spool/samba
    guest ok = Yes
    printable = yes
    print command = lpr-cups -P %p -o raw %s -r

[print$]
    path = /var/lib/samba/printers
    guest ok = Yes 
    browseable = No 
    read only = Yes
    write list = @adm root

[archive]
    available = yes
    path = /home/archive
    create mask = 775
    guest ok = Yes
--------------------------------------

Good luck,
Uli






More information about the samba mailing list