tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Ian 'Ivo' Veach <ivo () scs ! unr ! edu>
To: tru64-unix-managers
Subject: Q: suggestions for a live move of user dirs
Date: Fri, 30 Jul 1999 19:03:31 +0000	[thread overview]
Message-ID: <96079058316162.tru64-unix-managers.marc@archive.invalid> (raw)


Greetings gurus -

We are going to be changing our whole home directory structure from one
scenario to another, and would like to do it live if possible.  We've
got a clustered home area on two 4.0D servers running C2.  One idea
we had was (in a nutshell):

for each user in /etc/passwd
	if (user) logged in
		make a note and come back to them after they've logged
			out
	else
		"lock user out"
		mv their home dir to the new structure (time stamps
			are of no concern).
		replace their home dir with a symbolic link to their
			home in the new structure (so /etc/passwd
			still works)
		let user back on
then, replace the old passwd with the new passwd (reflecting the new
structure home dirs).  finally we can remove the old structure

My questions are 1) has anyone else done this sort of thing live and what
methods did you use, 2) with the aforementioned structure, does anybody
have a good method of "locking the user out"?  I hate to have the overhead
of 80000 calls to tcb to lock the user (then unlock), or 80000 changes to
/etc/passwd (changing their shell and then back), 3) general pointers I
missed?


cheers and thanks,
______________________________________________________________________________
Ian Veach, postmaster/webmaster/sysadmin       UCCSN System Computing Services
ivo@nevada.edu, http://www.nevada.edu/~ivo     775.784.6486, fax: 775.784.1108
______________________________________________________________________________

                 reply	other threads:[~1999-07-30 19:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox