[Samba] Samba Client in Windows Domain

Abigail Anzola anzolaa at cantv.net
Mon Sep 20 00:51:57 GMT 2004

I have a client Samba 3.0 in Redhat 9.0 to authenticate users using winbind. The users are created in a Windows 2000 machine (this machine is the PDC).

How do I in order that the users mount his directory of the PDC as /home/user1 in local machine on automatic way when them logon?

My smb.conf is:
    workgroup = MYDOMAIN
    server string = Samba Server
    security = DOMAIN
    password server = *
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    unix password sync = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    local master = no 
    os level = 33
    domain master = no
    preferred master = no
    winbind uid = 10000-20000
    winbind gid = 10000-20000
    winbind enum users = yes 
    winbind enum groups = yes
    winbind separator = .
    template homedir = /home/%U
    template shell = /bin/bash2


My /etc/nssswitch.conf is:
passwd:    compat winbind
shadow:    compat
group:       compat winbind

My /etc/pam.d/syst-auth is:
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      /lib/security/$ISA/pam_env.so
auth        sufficient    /lib/security/$ISA/pam_unix.so likeauth nullok
auth        sufficient    /lib/security/$ISA/pam_smb_auth.so use_first_pass nolocal
auth        sufficient    /lib/security/$ISA/pam_winbind.so use_first_pass
auth        required      /lib/security/$ISA/pam_deny.so

account     required      /lib/security/$ISA/pam_unix.so
account     sufficient    /lib/security/$ISA/pam_winbind.so use_first_pass

password    required      /lib/security/$ISA/pam_cracklib.so retry=3 type=
password    sufficient    /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password    sufficient    /lib/security/$ISA/pam_winbind.so use_first_pass
password    required      /lib/security/$ISA/pam_deny.so

session     required      /lib/security/$ISA/pam_limits.so
session     required      /lib/security/$ISA/pam_unix.so
session     sufficient    /lib/security/$ISA/pam_winbind.so use_first_pass

My /etc/fstab is:
//PDC/user1    /home/user1           smbfs   credentials=/home/user1/.smbpassword,workgroup=MYDOMAIN   0 0

My /home/user1/.smbpassword is:
username = user1
password = user1


Abigail Anzola

More information about the samba mailing list