Re: pam_mkhomedir and samba

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Forget the 166 mistake.

On 4/5/07, Cleber P. de Souza <cleberps@xxxxxxxxx> wrote:
You could solve this telling the netlogon script to map the user
proflle folder and in the share in smb.conf set root preexec to
something similar to this:
root preexec = PROFILE=/home/%U; if [ ! -d $PROFILE ] ; \
    166         then mkdir -pm700 $PROFILE; chown %U:group $PROFILE;fi



On 4/3/07, Stephane Branchoux <stephane.branchoux@xxxxxxxxxxxx> wrote:
> Hello,
>
> On a Redhat AS4 update 3,  authentication is configured with ldap server.
>
> In /etc/pam.d/system-auth file , i add :
>
> session     required      pam_mkhomedir.so skel=/etc/skel umask=0077 in
> order to autocreate homedirs.
>
> There is no problem with X11, ssh or ftp connexions but when we try a
> samba connexion with a user without homedir,
>
> autocreate  homedir is not possible.
>
> So, how can i configure samba in order to use pam_mkhomedir ?
>
> When homedir is created, is there a way to set a  user quota
> automatically or log this creation (to script for quota) ?
>
> Many thanks in advance.
>
>  more /etc/pam.d/samba :
>
> #%PAM-1.0
> auth       required     pam_nologin.so
> auth       required     pam_stack.so service=system-auth
> account    required     pam_stack.so service=system-auth
> session    required     pam_stack.so service=system-auth
> password   required     pam_stack.so service=system-auth
>
> --
> stephane BRANCHOUX
> Centre de Ressources Informatiques de l'Université de Perpignan.
> Systèmes/Réseaux
> mailto:stephane.branchoux@xxxxxxxxxxxx
> 04 68 66 21 24
>
>
> --
> Ce message a été vérifié par MailScanner
> pour des virus ou des polluriels et rien de
> suspect n'a été trouvé.
> CRI UPVD http://www.univ-perp.fr
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>


--
***
Cleber P. de Souza



--
***
Cleber P. de Souza

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux