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
abbf91e0
Commit
abbf91e0
authored
Jan 04, 2005
by
Russ Fish
Browse files
Minor CygWin setup script fixes.
parent
39b373ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
tmcd/cygwinxp/GNUmakefile.in
View file @
abbf91e0
...
...
@@ -62,7 +62,7 @@ bin-install: dir-install
# These are found in the /share/windows directory.
$(INSTALL) -m 755 $(SRCDIR)/WSName.exe $(BINDIR)/WSName.exe
$(INSTALL) -m 755 $(SRCDIR)/addusers.exe $(BINDIR)/addusers.exe
$(INSTALL) -m 755 $(SRCDIR)/
addusers
.exe $(BINDIR)/usrtogrp.exe
$(INSTALL) -m 755 $(SRCDIR)/
usrtogrp
.exe $(BINDIR)/usrtogrp.exe
# These are used by tmcd/findif.
$(INSTALL) -m 755 $(SYSTEM32)/getmac.exe $(BINDIR)/getmac.exe
$(INSTALL) -m 755 $(WBEM)/framedyn.dll $(BINDIR)/framedyn.dll
...
...
tmcd/cygwinxp/rc.cygwinxp-user
View file @
abbf91e0
...
...
@@ -9,9 +9,11 @@
# with value:
# C:\cygwin\bin\bash /usr/local/etc/emulab/rc/rc.cygwinxp-user
PATH
=
/usr/local/etc/emulab:
$PATH
PATH
=
/usr/local/etc/emulab:/bin:
$PATH
export
PATH
# Root has a local home directory, and is handled by the SYSTEM sshd on port 22.
# There is no need to do any of the following for root.
user
=
`
id
-un
`
if
[
$user
=
root
]
;
then
exit
0
...
...
tmcd/cygwinxp/startsshd
View file @
abbf91e0
...
...
@@ -46,7 +46,7 @@ chmod o-r /etc/ssh*key.user
# Start sshd in the background, orphaned so it doesn't get SIGINT from here.
# The pidfile is updated by sshd itself.
# Don't use privilege separation, because it requires taking ownership of
# Don't use privilege separation
here
, because it requires taking ownership of
# /var/empty, which kills key exchange for the SYSTEM root sshd.
echo
"Starting new sshd daemon as
$user
."
(
CYGWIN
=
"ntsec tty"
/usr/sbin/sshd
-p
2222
-o
"UsePrivilegeSeparation no"
\
...
...
@@ -54,6 +54,6 @@ echo "Starting new sshd daemon as $user."
sleep
2
# Remember this one separately from the SYSTEM sshd.
chmod
-f
g+w
$upidfile
chmod
-f
g+w
$upidfile
>
& /dev/null
cp
$pidfile
$upidfile
chmod
-f
g+w
$upidfile
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