Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0594b2b2
Commit
0594b2b2
authored
Nov 19, 2012
by
Mike Hibler
Browse files
Don't try to set the password for 'toor' if it doesn't exist.
parent
a6f62695
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/liblocsetup.pm
View file @
0594b2b2
...
...
@@ -1016,7 +1016,9 @@ sub os_modpasswd($$)
warn
"
*** WARNING: resetting password for
$login
.
\n
";
return
-
1
;
}
# don't try to reset 'toor' if it doesn't exist
if
(
$login
eq
"
root
"
&&
system
("
grep -q toor
$TMPASSWD
")
==
0
&&
system
("
$USERMOD
-p '
$pswd
' toor
")
!=
0
)
{
warn
"
*** WARNING: resetting password for toor.
\n
";
return
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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