From 410e72008e7fc4b761db1c4041aaf382fe74bf64 Mon Sep 17 00:00:00 2001
From: "Leigh B. Stoller" <stoller@flux.utah.edu>
Date: Wed, 27 Oct 2004 13:33:19 +0000
Subject: [PATCH] Set email/shell for protouser.

---
 utils/firstuser.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/utils/firstuser.in b/utils/firstuser.in
index 0633a12c45..e45797b023 100755
--- a/utils/firstuser.in
+++ b/utils/firstuser.in
@@ -24,6 +24,7 @@ my $mkacct  = '@prefix@/sbin/tbacct add';
 my $protouser       = 'elabman';
 my $protouser_name  = 'Emulab Manager';
 my $protouser_email = '@TBOPSEMAIL@';
+my $protouser_shell = 'tcsh';
 my $protoproj       = 'emulab-ops';
 my $protoproj_desc  = 'Operations Meta-Project';
 my $batchmode       = 0;
@@ -106,7 +107,8 @@ if (system "/usr/sbin/pw useradd $protouser -u $uid -g $agid -G $Ggid -h - " .
 print "Creating user in database...\n";
 DBQueryFatal("insert into users set uid='$protouser', usr_created=now(), " .
 	"usr_name='$protouser_name', usr_pswd='$encpass', unix_uid=$uid, ".
-	"usr_modified=now(), admin=1, webonly=1, status='active'");
+	"usr_modified=now(), admin=1, webonly=1, status='active', ".
+	"usr_shell='$protouser_shell', usr_email='$protouser_email'");
 
 print "Creating project in database...\n";
 DBQueryFatal("insert into projects set pid='$protoproj', created=now(), " .
-- 
GitLab