Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
3e04dac9
Commit
3e04dac9
authored
Nov 04, 2005
by
Russ Fish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak "prepare" output.
parent
846badf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
tmcd/cygwinxp/liblocsetup.pm
tmcd/cygwinxp/liblocsetup.pm
+6
-6
tmcd/cygwinxp/prepare
tmcd/cygwinxp/prepare
+2
-2
No files found.
tmcd/cygwinxp/liblocsetup.pm
View file @
3e04dac9
...
...
@@ -127,15 +127,15 @@ sub os_account_cleanup()
print
"
Removing user:
$name
\n
";
# There is always an NT account.
mysystem
("
$NET
user
$name
/delete > /dev/null
");
mysystem
("
$NET
user
$name
/delete >
&
/dev/null
");
# There will only be an NT homedir if the user has logged in sometime.
system
("
$CHMOD
-Rf 777 C:/'Documents and Settings'/
$name
> /dev/null
");
system
("
$CHOWN
-Rf root C:/'Documents and Settings'/
$name
> /dev/null
");
system
("
$CHMOD
-Rf 777 C:/'Documents and Settings'/
$name
>
&
/dev/null
");
system
("
$CHOWN
-Rf root C:/'Documents and Settings'/
$name
>
&
/dev/null
");
system
("
$RM
-rf C:/'Documents and Settings'/
$name
");
# It sometimes also makes user.PCnnn, user.PCnnn.000, etc.
system
("
$CHMOD
-Rf 777 C:/'Documents and Settings'/
$name
.* > /dev/null
");
system
("
$CHOWN
-Rf root C:/'Documents and Settings'/
$name
.* > /dev/null
");
system
("
$CHMOD
-Rf 777 C:/'Documents and Settings'/
$name
.* >
&
/dev/null
");
system
("
$CHOWN
-Rf root C:/'Documents and Settings'/
$name
.* >
&
/dev/null
");
system
("
$RM
-rf C:/'Documents and Settings'/
$name
.*
");
# Unmount the homedir so we can get to the mount point.
...
...
@@ -418,7 +418,7 @@ sub os_usermod($$$$$$)
}
}
$cmd
=
"
echo -e '
$pswd
\\
n
$pswd
' | passwd
$login
> /dev/null
2>&1
";
$cmd
=
"
echo -e '
$pswd
\\
n
$pswd
' | passwd
$login
>
&
/dev/null
";
##print " $cmd\n";
if
(
system
(
$cmd
)
!=
0
)
{
warning
("
os_usermod error (
$cmd
)
\n
");
...
...
tmcd/cygwinxp/prepare
View file @
3e04dac9
...
...
@@ -159,8 +159,8 @@ print "Clearing out $RUNDIR ...\n";
system
("
rm -rf
$RUNDIR
/*.pid
");
print
"
Clearing out /tmp ...
\n
";
system
("
chmod -Rf 777 /tmp/* /tmp/.??* > /dev/null
");
system
("
chown -Rf root /tmp > /dev/null
");
system
("
chmod -Rf 777 /tmp/* /tmp/.??* >
&
/dev/null
");
system
("
chown -Rf root /tmp >
&
/dev/null
");
system
("
rm -rf /tmp/* /tmp/.??*
");
print
"
Cleaning out /local/logs ...
\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