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
81fea716
Commit
81fea716
authored
Jan 07, 2003
by
Mac Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it show username in addition to unix UID. Duh.
parent
0b05a0ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
tbsetup/os_select.in
tbsetup/os_select.in
+5
-6
No files found.
tbsetup/os_select.in
View file @
81fea716
...
...
@@ -125,16 +125,15 @@ if (@nodes < 1) { fatal("No valid nodes supplied.\n"); }
# Figure out who called us. Only root, people with admin status
# in the DB, or members of the right project can do this.
my
(
$me
)
=
getpwuid
(
$UID
)
or
fatal
("
$UID
not in passwd file
\n
");
if
(
$UID
&&
!
TBAdmin
(
$UID
))
{
my
(
$me
)
=
getpwuid
(
$UID
)
or
fatal
("
$UID
not in passwd file
\n
");
#debug("Not an admin.\n");
if
(
!
TBNodeAccessCheck
(
$UID
,
TB_NODEACCESS_MODIFYINFO
,
@nodes
))
{
fatal
("
os_select: You do not have permission to modify
"
.
"
one or more of the nodes.
\n
");
"
one or more of the nodes.
(
$me
/
$UID
)
\n
");
}
debug
("
$UID
: Access granted to all nodes requested.
\n
");
}
else
{
debug
("
$UID
: Running as an admin.
\n
");
}
debug
("
$
me
/
$
UID
: Access granted to all nodes requested.
\n
");
}
else
{
debug
("
$
me
/
$
UID
: Running as an admin.
\n
");
}
my
$pernodeopmode
=
0
;
my
$opmode
=
os_opmode
(
$osid
);
...
...
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