Commit 5a98fad5 authored by Leigh B Stoller's avatar Leigh B Stoller

All users except the creator are set to frozen so that the accounts

are not created during the swapin. This should save a bunch of time
when the project has lots of users. Even admin users are frozen, so if
you are an admin and need to log in:

realboss> sudo ssh innerboss
innerboss> sudo -u elabman tbacct thaw <user>

Hmm, might have to first change the status in the users table to
'active'
parent 46d9e236
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004-2009 University of Utah and the Flux Group.
# Copyright (c) 2004-2010 University of Utah and the Flux Group.
# All rights reserved.
#
# TODO: ntpinfo table.
......@@ -706,6 +706,19 @@ sub DumpDBGoo()
DBQueryFatal("update temp_${table} set ".
" admin=1 ".
"where uid='$creator_uid'");
#
# Save time; force all users to start out
# frozen since most users in the project do not ever
# actually log in.
#
DBQueryFatal("update temp_${table} set ".
" admin=0 ".
"where uid!='$creator_uid'");
DBQueryFatal("update temp_${table} set ".
" status='" . USERSTATUS_FROZEN() . "' ".
"where admin=0");
}
# Clean up ... these are created in the inner elab.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment