[4876] in WWW Security List Archive
Re: Changing a users UNIX home dir from a shell script
daemon@ATHENA.MIT.EDU (BVE)
Sat Mar 22 15:21:27 1997
Date: Sat, 22 Mar 97 13:14:12 EST
From: bve@quadrix.com (BVE)
To: darkstar@gpo.sonnet.co.uk
In-Reply-To: <01BC3617.90C664C0@darkstar.sonnet.co.uk> (message from Steve Seymour on Fri, 21 Mar 1997 16:47:27 -0000)
Cc: www-security@ns2.rutgers.edu
Errors-To: owner-www-security@ns2.rutgers.edu
We need to be able to change a users home directory without re-creating =
the user. If it wasn't going to be done from a script,=20
could quite easily use chpass or even vipw but neither can be used from =
a script. I realise this is a bit off the topic of www-security, but the =
system is implemented on an _internal_ web server so I thought it would =
be worth a try!
Easy. Just write a perl or C or anything program that edits /etc/passwd, finds
the correct line for that user, and modifies the field where the home directory
is stored....
-- Bill Van Emburg
Phone: 908-235-2335 Quadrix Solutions, Inc.
Fax: 908-235-2336 (bve@quadrix.com)
Check out http://yourtown.com! (http://quadrix.com)
"You do what you want, and if you didn't, you don't"