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
1f6d5468
Commit
1f6d5468
authored
Mar 04, 2005
by
Russ Fish
Browse files
Micro-fixes: Don't trunctate Windows password to 8 chars, and make /sshkeys subdirs owned by user.
parent
4e1cc382
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.accounts
View file @
1f6d5468
...
...
@@ -496,11 +496,7 @@ sub doboot()
# Set the ownership of the home directory / mount point / keys.
# Use the system chown by name, not UID. Can't use chown -R, it goes
# top-down, chowning the directory away and then trying to read it.
#
# Okay, this is really wrong. The authkeys files can't be mode 600
# and owned by the user. They can be 644/user, or 600/SYSTEM.
# Is this a bug in sshd's use of setreuid()? We prefer 600/SYSTEM.
my
$cmd
=
"
$CHOWN
SYSTEM
$sshdir
/*
";
my
$cmd
=
"
$CHOWN
$login
$sshdir
/*
";
if
(
system
(
$cmd
)
!=
0
)
{
warning
("
Failed
$cmd
: $!
");
}
...
...
tmcd/cygwinxp/liblocsetup.pm
View file @
1f6d5468
...
...
@@ -394,7 +394,7 @@ sub os_useradd($$$$$$$$$)
# Use the leading 8 chars of the Unix MD5 passwd hash as a known random
# password, both here and in Samba. Skip over a "$1$" prefix.
my
$pwd
=
$pswd
;
$pwd
=~
s/^(\$1\$)
?
(.{8}).*/$2/
;
$pwd
=~
s/^(\$1\$)(.{8}).*/$2/
;
print
WINUSERS
"
$login
,
$gcos
,
$pwd
,,,,,
\r\n
";
...
...
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