LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba as PDC RH9 (https://www.linuxquestions.org/questions/linux-newbie-8/samba-as-pdc-rh9-136843/)

datalord7 01-20-2004 04:47 PM

samba as PDC RH9
 
Hi i have finally managed to configure samba to run smoothly as a pdc for my network of 98 machines however i have one small problem.

i am trying to use the module pam_mkhomedir.so to create the users home directory on the fly at firt login and set the permissions for the folder and sub folders to owner 'user) group 'users group; rwx

heres what ive done

firstly i created a folder with full rwx for all users /samba/skel
my profiles for windows users are stored in /samba/profiles/%U

in the /samba/skel folder i have placed a windows profile to be copied to the users home directory upon creation.

to my smb.conf file in the globals part i have added the line template homedir = /samba/profiles/%U does this have to be in a certain place within the globals??? do i need to add any winbind lines????


to my /etc/pam.d/samba file i have added at the top of the session section

session required pam_mkhomedir.so skel=/samba/skel umask=0022

now i create a user on the linux platform as normal and create the same user within the samba server.

when i then log on from the 98 client using this name / password the logon is denied bad name / password

however if i create users in exactly the same way but do not ad the lines to the samba and smb.conf file then create the directory manually in /samba/profiles all it well

this is driving me insane now if anybody could show me the error of my ways i would be mose grateful :-)

many thanks

matt


All times are GMT -5. The time now is 01:12 AM.