Skip to content
GitLab
Menu
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
12446686
Commit
12446686
authored
Aug 26, 2017
by
Mike Hibler
Browse files
Check for existence of "toor" user before trying to change password.
parent
3cf35fbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/freebsd/liblocsetup.pm
View file @
12446686
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-201
6
University of Utah and the Flux Group.
# Copyright (c) 2000-201
7
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -510,6 +510,7 @@ sub os_modpasswd($$)
return
-
1
;
}
if
(
$login
eq
"
root
"
&&
!
system
("
grep -q toor /etc/passwd
")
&&
system
("
$CHPASS
'
$pswd
' toor
")
!=
0
)
{
warn
"
*** WARNING:
$CHPASS
$login
error.
\n
";
return
-
1
;
...
...
Write
Preview
Supports
Markdown
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