Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2001 20:13:35 +0000
From:      setantae <setantae@submonkey.net>
To:        Dave VanAuken <dave@hawk-systems.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: determine user home directory from non-priv user
Message-ID:  <20011121201335.GA3178@rhadamanth>
In-Reply-To: <DBEIKNMKGOBGNDHAAKGNOEOGKEAA.dave@hawk-systems.com>
References:  <DBEIKNMKGOBGNDHAAKGNOEOGKEAA.dave@hawk-systems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 21, 2001 at 02:34:15PM -0500, Dave VanAuken wrote:
> 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#

Will this do ?

setantae@rhadamanth setantae$ awk -F: '/setantae/ {print $6}' /etc/passwd
/home/setantae

Ceri

-- 
keep a mild groove on

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011121201335.GA3178>