[4871] in WWW Security List Archive
Re: Changing a users UNIX home dir from a shell script
daemon@ATHENA.MIT.EDU (Evil Pete)
Fri Mar 21 18:07:00 1997
To: Steve Seymour <darkstar@gpo.sonnet.co.uk>
cc: www-security@ns2.rutgers.edu
From: Evil Pete <shipley@dis.org>
In-reply-to: Your message of Fri, 21 Mar 1997 16:47:27 +0000.
<01BC3617.90C664C0@darkstar.sonnet.co.uk>
Date: Fri, 21 Mar 1997 12:21:44 -0800
Errors-To: owner-www-security@ns2.rutgers.edu
>Hi,
>
>We are in the process of implementing a series of shell scripts on a BSD =
>OS machine and have come accross a problem.=20
>
>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!
>
>If anyone has any solutions based on perl or the C shell or anything =
>that can be driven from the command line, I would be grateful to hear =
>about them or any pointers in the right direction.
>
you should be able to edit the master.passed and rebuild the passwd dbm files
with pwd_mkdb(8)
but how is this a www-security related question?