[wplug] need to find user HOME dir

Alexandros Papadopoulos apapadop at cmu.edu
Tue Jul 1 00:33:34 EDT 2003


On Monday 30 June 2003 23:53, Gentgeen wrote:
<snip>
> wand to add a way to set the HOMEDIR from the USERNAME. I think I
> would do this via the /etc/passwd file, but I do not know how to get
> the info from that file.

You mean something like:

HOMEDIR=`grep $USER /etc/passwd | cut -d ":" -f 6`

?

-A
-- 
http://andrew.cmu.edu/~apapadop/pub_key.asc
3DAD 8435 DB52 F17B 640F  D78C 8260 0CC1 0B75 8265
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030701/a5eb6277/attachment-0001.bin


More information about the wplug mailing list