[4868] in WWW Security List Archive
Changing a users UNIX home dir from a shell script
daemon@ATHENA.MIT.EDU (Steve Seymour)
Fri Mar 21 14:06:06 1997
From: Steve Seymour <darkstar@gpo.sonnet.co.uk>
To: "www-security@ns2.rutgers.edu" <www-security@ns2.rutgers.edu>
Date: Fri, 21 Mar 1997 16:47:27 -0000
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.
Regards,
Steve Seymour
DS Networks