Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
3ea9d372
Commit
3ea9d372
authored
Oct 06, 2004
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put elabman (firstuser) into wheel group on ops so it can sudo.
parent
ddb9a7fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
utils/firstuser.in
utils/firstuser.in
+4
-2
No files found.
utils/firstuser.in
View file @
3ea9d372
...
...
@@ -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
";
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment