From owner-freebsd-questions Wed Nov 21 11:31:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk-systems.com (hawk-systems.com [161.58.152.235]) by hub.freebsd.org (Postfix) with ESMTP id 2F4E737B416 for ; Wed, 21 Nov 2001 11:31:55 -0800 (PST) Received: from cr159591a (cr159591-a.pr1.on.wave.home.com [24.102.18.54]) by hawk-systems.com (8.11.6) id fALJVph96708 for ; Wed, 21 Nov 2001 12:31:51 -0700 (MST) From: "Dave VanAuken" To: Subject: determine user home directory from non-priv user Date: Wed, 21 Nov 2001 14:34:15 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG from a non-priv account we need to determine the home directory of a user... used for interaction with web server. Obviously pw is out of the question because we do not wish to give priv to the web server (despite it being an enclosed system)... any other system base alternatives? For example, need to find out what user "Joe"'s home dir is... we would execute our program ("finduserdir" in this example) in the following manner to get the desired results: server# finduserdir Joe /usr/home/Joe server# Again, we need to do this from the webserver or other non-priv userid. Appreciate any comments. Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message