From owner-freebsd-questions@FreeBSD.ORG Wed Oct 14 21:49:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C865A106568D for ; Wed, 14 Oct 2009 21:49:22 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from lerwick.hopto.org (81-178-20-70.dsl.pipex.com [81.178.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id E9C258FC2A for ; Wed, 14 Oct 2009 21:49:21 +0000 (UTC) Received: (qmail 34801 invoked by uid 98); 14 Oct 2009 22:49:22 +0100 Received: from 192.168.0.124 by polaris.lerwick.hopto.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.88.4/1789. hbedv: 7.1.1.11/6.35.1.178. f-prot: 4.6.6/3.16.14. spamassassin: 3.1.4. Clear:RC:1(192.168.0.124):. Processed in 0.050256 secs); 14 Oct 2009 21:49:22 -0000 Received: from unknown (HELO ?192.168.0.124?) (192.168.0.124) by lerwick.hopto.org with SMTP; 14 Oct 2009 22:49:22 +0100 From: Craig Butler To: freebsd-questions Content-Type: text/plain Date: Wed, 14 Oct 2009 22:49:22 +0100 Message-Id: <1255556963.1258.4.camel@coyote.lerwick.hopto.org> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: ldap and pam-mkhomedir, anyone know how to set directory ownership to the ldap user logging in ?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 21:49:22 -0000 Hi All Currently I have got pam authenticating against ldap and mkhomedir creating the home directories, but they are created owned as root:wheel and the user can't write to their own home directory -- I have read the man page for pam_mkhomedir, the only way I see it working at the moment is setting an insecure umask in the pam definition.... Any ideas on how I can get them owned by the ldap user signing in ? Thanks Craig B