Commit 3ea9d372 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Put elabman (firstuser) into wheel group on ops so it can sudo.

parent ddb9a7fd
......@@ -87,7 +87,9 @@ my $agid = (getgrnam($tbadmin))[2];
if (!defined $agid) {
die "Unable to get group ID for $tbadmin\n";
# And in the wheel group so elabman can sudo to root.
my $Ggid = "wheel";
if (!$batchmode) {
print "Creating user/project: Are you sure? (Y/N) ";
if (<> !~ /Y/i) {
......@@ -96,7 +98,7 @@ if (!$batchmode) {
print "Creating user on boss...\n";
if (system "/usr/sbin/pw useradd $protouser -u $uid -g $agid -h - " .
if (system "/usr/sbin/pw useradd $protouser -u $uid -g $agid -G $Ggid -h - " .
"-s /bin/nologin -c \"$protouser_name\"\n") {
die "Unable to add user to the password file!\n";
Supports Markdown
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