From owner-freebsd-questions@FreeBSD.ORG Tue May 3 16:01:22 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 570E616A4CE for ; Tue, 3 May 2005 16:01:22 +0000 (GMT) Received: from etustar.ze.tum.de (etustar.ze.tum.de [129.187.39.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id A400043D45 for ; Tue, 3 May 2005 16:01:21 +0000 (GMT) (envelope-from estartu@etustar.ze.tum.de) Received: from etustar.ze.tum.de (estartu@localhost.ze.tu-muenchen.de [127.0.0.1]) by etustar.ze.tum.de (8.13.1/8.12.11) with ESMTP id j43G1Hdv091964; Tue, 3 May 2005 18:01:17 +0200 (CEST) (envelope-from estartu@etustar.ze.tum.de) Received: (from estartu@localhost) by etustar.ze.tum.de (8.13.1/8.12.11/Submit) id j43G1HBw091963; Tue, 3 May 2005 18:01:17 +0200 (CEST) (envelope-from estartu) Date: Tue, 3 May 2005 18:01:17 +0200 From: Gerhard Schmidt To: freebsd-questions@freebsd.org Message-ID: <20050503160116.GA91906@augusta.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: createing users homedir on first login X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 16:01:22 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have set up some FreeBSD 5 Workstations and configured nss to get the=20 accounts from ldap. Pam is also set up to work with ldap. Everything so=20 far is runningnperfectly smooth. The problem is the workstations don`t have a shared filesystem. Each user should have an seperate homedir on every=20 workstation.=20 I tried to use pam_exec to create the homedir on the first login. But it seams there is now way of knowing who is logging. I've even tried=20 to use pw usershow -a to get all users and create all homedirs but=20 pw usershow -a don't report any users when started from a shellscript=20 called by the pam_exec module.=20 Anyone successfully implemented a system to create homedirs on the fly.=20 bye Estartu ---------------------------------------------------------------------------- Gerhard Schmidt | Nick : estartu IRC : Estartu | Fischbachweg 3 | | PGP Public Key 86856 Hiltenfingen | E-Mail: estartu@augusta.de | auf Anfrage/ Germany | | on request --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: cN7yZFC7LD6s85hl8/UGsI+fSuJN/k1h iQCVAwUBQnegTAzx22nOTJQRAQGasAQAoxO3ns0CFkB5Kk96C8BSB2zXQEneuVWA qgvscPm6p/bFCdn2Og6ymSIkDsTX/3hxKUybW3sDAvjPQs8Bfpf1x8HM3kkCZJMX pJO4Ko46UHEFmH3QFRophnnUesx5mXsYXnYPz0tbN/HqY/MHNY8xK5scNg924CVC PZbyUj3vRtU= =+tIi -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--