Running sshd in cygwin: “/var/empty must be owned by root…” Announcing the arrival of...
Aligning matrix of nodes with grid
Stars Make Stars
What to do with post with dry rot?
Passing functions in C++
When is phishing education going too far?
What are the performance impacts of 'functional' Rust?
If A makes B more likely then B makes A more likely"
What's the difference between (size_t)-1 and ~0?
How to retrograde a note sequence in Finale?
Keep going mode for require-package
Working around an AWS network ACL rule limit
What LEGO pieces have "real-world" functionality?
3 doors, three guards, one stone
Was credit for the black hole image misattributed?
How to market an anarchic city as a tourism spot to people living in civilized areas?
Can a 1st-level character have an ability score above 18?
Windows 10: How to Lock (not sleep) laptop on lid close?
How should I respond to a player wanting to catch a sword between their hands?
Determine whether f is a function, an injection, a surjection
Why does this iterative way of solving of equation work?
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
How can I protect witches in combat who wear limited clothing?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
Slither Like a Snake
Running sshd in cygwin: “/var/empty must be owned by root…”
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionI killed sshd but it's still running?How can I tell if sshd is running with ClientAliveInterval > 0?ssh daemon error: sshd must be ownSeparate SSHD Authpriv logs into /var/log/sshd, all other authpriv logging goes to messagesError when running TMUX under CYGWINRunning script in cygwin enviromentRunning Docker under Windows/cygwin environmentRunning JAVA in Cygwin through bash scriptHave bash script running every min in CygwinCan't chown 0 (root) in Cygwin
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by root and not group or world-writable.
This is the output of the ls -All /var:
$ ls -All /var
total 0
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 cache
drw-------+ 1 cyg_server Administrators 0 Jul 15 21:43 empty
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 lib
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:45 log
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 23:36 run
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:39 tmp
I've tried a few of the permissions fixes and rebooted and reinstalled OpenSSH (by running ssh-host-config) at least 10 times, but nothing had fixed it.
How do I fix this error? Thanks!
ssh sshd cygwin
bumped to the homepage by Community♦ 7 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 9 more comments
I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by root and not group or world-writable.
This is the output of the ls -All /var:
$ ls -All /var
total 0
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 cache
drw-------+ 1 cyg_server Administrators 0 Jul 15 21:43 empty
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 lib
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:45 log
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 23:36 run
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:39 tmp
I've tried a few of the permissions fixes and rebooted and reinstalled OpenSSH (by running ssh-host-config) at least 10 times, but nothing had fixed it.
How do I fix this error? Thanks!
ssh sshd cygwin
bumped to the homepage by Community♦ 7 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Did you installsshdthrough thecygwininstaller?
– Julie Pelletier
Jul 16 '16 at 6:47
yes @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:49
1
it says owned bycyg_servershouldn't it sayroot? trychown root /var/empty
– Jasen
Jul 16 '16 at 6:51
other sites I looked at (including this: stackoverflow.com/a/20473488/1184062), show the owner as cyg_server @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:53
It depends on the user the service runs as, and you need to run thecygwinshell as an administrator. If you're already running it as an administrator, I guess your service could be running as theSYSTEMuser.
– Julie Pelletier
Jul 16 '16 at 6:55
|
show 9 more comments
I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by root and not group or world-writable.
This is the output of the ls -All /var:
$ ls -All /var
total 0
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 cache
drw-------+ 1 cyg_server Administrators 0 Jul 15 21:43 empty
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 lib
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:45 log
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 23:36 run
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:39 tmp
I've tried a few of the permissions fixes and rebooted and reinstalled OpenSSH (by running ssh-host-config) at least 10 times, but nothing had fixed it.
How do I fix this error? Thanks!
ssh sshd cygwin
I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by root and not group or world-writable.
This is the output of the ls -All /var:
$ ls -All /var
total 0
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 cache
drw-------+ 1 cyg_server Administrators 0 Jul 15 21:43 empty
drwxr-xr-x+ 1 {my_usrnm} None 0 Jul 15 21:39 lib
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:45 log
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 23:36 run
drwxrwxrwt+ 1 {my_usrnm} None 0 Jul 15 21:39 tmp
I've tried a few of the permissions fixes and rebooted and reinstalled OpenSSH (by running ssh-host-config) at least 10 times, but nothing had fixed it.
How do I fix this error? Thanks!
ssh sshd cygwin
ssh sshd cygwin
asked Jul 16 '16 at 6:43
ZuluDeltaNinerZuluDeltaNiner
191128
191128
bumped to the homepage by Community♦ 7 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 7 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Did you installsshdthrough thecygwininstaller?
– Julie Pelletier
Jul 16 '16 at 6:47
yes @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:49
1
it says owned bycyg_servershouldn't it sayroot? trychown root /var/empty
– Jasen
Jul 16 '16 at 6:51
other sites I looked at (including this: stackoverflow.com/a/20473488/1184062), show the owner as cyg_server @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:53
It depends on the user the service runs as, and you need to run thecygwinshell as an administrator. If you're already running it as an administrator, I guess your service could be running as theSYSTEMuser.
– Julie Pelletier
Jul 16 '16 at 6:55
|
show 9 more comments
Did you installsshdthrough thecygwininstaller?
– Julie Pelletier
Jul 16 '16 at 6:47
yes @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:49
1
it says owned bycyg_servershouldn't it sayroot? trychown root /var/empty
– Jasen
Jul 16 '16 at 6:51
other sites I looked at (including this: stackoverflow.com/a/20473488/1184062), show the owner as cyg_server @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:53
It depends on the user the service runs as, and you need to run thecygwinshell as an administrator. If you're already running it as an administrator, I guess your service could be running as theSYSTEMuser.
– Julie Pelletier
Jul 16 '16 at 6:55
Did you install
sshd through the cygwin installer?– Julie Pelletier
Jul 16 '16 at 6:47
Did you install
sshd through the cygwin installer?– Julie Pelletier
Jul 16 '16 at 6:47
yes @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:49
yes @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:49
1
1
it says owned by
cyg_server shouldn't it say root ? try chown root /var/empty– Jasen
Jul 16 '16 at 6:51
it says owned by
cyg_server shouldn't it say root ? try chown root /var/empty– Jasen
Jul 16 '16 at 6:51
other sites I looked at (including this: stackoverflow.com/a/20473488/1184062), show the owner as cyg_server @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:53
other sites I looked at (including this: stackoverflow.com/a/20473488/1184062), show the owner as cyg_server @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:53
It depends on the user the service runs as, and you need to run the
cygwin shell as an administrator. If you're already running it as an administrator, I guess your service could be running as the SYSTEM user.– Julie Pelletier
Jul 16 '16 at 6:55
It depends on the user the service runs as, and you need to run the
cygwin shell as an administrator. If you're already running it as an administrator, I guess your service could be running as the SYSTEM user.– Julie Pelletier
Jul 16 '16 at 6:55
|
show 9 more comments
1 Answer
1
active
oldest
votes
The directory owner and permission are correct.
During configuration use the PrivilegeSeparation option.
Start the demon as service
cygrunsrv -S sshd
Example of directory permission on a functional system
$ icacls $(cygpath -w /var/empty)
E:cygwin64varempty NULL SID:(DENY)(Rc,S,REA,X,DC)
MATZERIcyg_server:(F)
BUILTINAdministrators:(RX)
NT AUTHORITYSYSTEM:(RX)
BUILTINAdministrators:(RX)
Everyone:(RX)
CREATOR OWNER:(OI)(CI)(IO)(F)
CREATOR GROUP:(OI)(CI)(IO)(RX)
Everyone:(OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
They are reported in the cygwin way as
$ getfacl /var/empty
# file: /var/empty
# owner: cyg_server
# group: Administrators
user::rwx
group::r-x
group:SYSTEM:r-x
group:Administrators:r-x
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x
If there are spurious extra ACL permission the usage of setfacl -b /var/empty/ could be useful.
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
My permissions were not correct, so I ran$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.
– ZuluDeltaNiner
Jul 17 '16 at 16:19
what is the output oficacls $(cygpath -w /var/empty)?
– matzeri
Jul 17 '16 at 17:04
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296275%2frunning-sshd-in-cygwin-var-empty-must-be-owned-by-root%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The directory owner and permission are correct.
During configuration use the PrivilegeSeparation option.
Start the demon as service
cygrunsrv -S sshd
Example of directory permission on a functional system
$ icacls $(cygpath -w /var/empty)
E:cygwin64varempty NULL SID:(DENY)(Rc,S,REA,X,DC)
MATZERIcyg_server:(F)
BUILTINAdministrators:(RX)
NT AUTHORITYSYSTEM:(RX)
BUILTINAdministrators:(RX)
Everyone:(RX)
CREATOR OWNER:(OI)(CI)(IO)(F)
CREATOR GROUP:(OI)(CI)(IO)(RX)
Everyone:(OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
They are reported in the cygwin way as
$ getfacl /var/empty
# file: /var/empty
# owner: cyg_server
# group: Administrators
user::rwx
group::r-x
group:SYSTEM:r-x
group:Administrators:r-x
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x
If there are spurious extra ACL permission the usage of setfacl -b /var/empty/ could be useful.
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
My permissions were not correct, so I ran$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.
– ZuluDeltaNiner
Jul 17 '16 at 16:19
what is the output oficacls $(cygpath -w /var/empty)?
– matzeri
Jul 17 '16 at 17:04
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
add a comment |
The directory owner and permission are correct.
During configuration use the PrivilegeSeparation option.
Start the demon as service
cygrunsrv -S sshd
Example of directory permission on a functional system
$ icacls $(cygpath -w /var/empty)
E:cygwin64varempty NULL SID:(DENY)(Rc,S,REA,X,DC)
MATZERIcyg_server:(F)
BUILTINAdministrators:(RX)
NT AUTHORITYSYSTEM:(RX)
BUILTINAdministrators:(RX)
Everyone:(RX)
CREATOR OWNER:(OI)(CI)(IO)(F)
CREATOR GROUP:(OI)(CI)(IO)(RX)
Everyone:(OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
They are reported in the cygwin way as
$ getfacl /var/empty
# file: /var/empty
# owner: cyg_server
# group: Administrators
user::rwx
group::r-x
group:SYSTEM:r-x
group:Administrators:r-x
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x
If there are spurious extra ACL permission the usage of setfacl -b /var/empty/ could be useful.
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
My permissions were not correct, so I ran$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.
– ZuluDeltaNiner
Jul 17 '16 at 16:19
what is the output oficacls $(cygpath -w /var/empty)?
– matzeri
Jul 17 '16 at 17:04
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
add a comment |
The directory owner and permission are correct.
During configuration use the PrivilegeSeparation option.
Start the demon as service
cygrunsrv -S sshd
Example of directory permission on a functional system
$ icacls $(cygpath -w /var/empty)
E:cygwin64varempty NULL SID:(DENY)(Rc,S,REA,X,DC)
MATZERIcyg_server:(F)
BUILTINAdministrators:(RX)
NT AUTHORITYSYSTEM:(RX)
BUILTINAdministrators:(RX)
Everyone:(RX)
CREATOR OWNER:(OI)(CI)(IO)(F)
CREATOR GROUP:(OI)(CI)(IO)(RX)
Everyone:(OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
They are reported in the cygwin way as
$ getfacl /var/empty
# file: /var/empty
# owner: cyg_server
# group: Administrators
user::rwx
group::r-x
group:SYSTEM:r-x
group:Administrators:r-x
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x
If there are spurious extra ACL permission the usage of setfacl -b /var/empty/ could be useful.
The directory owner and permission are correct.
During configuration use the PrivilegeSeparation option.
Start the demon as service
cygrunsrv -S sshd
Example of directory permission on a functional system
$ icacls $(cygpath -w /var/empty)
E:cygwin64varempty NULL SID:(DENY)(Rc,S,REA,X,DC)
MATZERIcyg_server:(F)
BUILTINAdministrators:(RX)
NT AUTHORITYSYSTEM:(RX)
BUILTINAdministrators:(RX)
Everyone:(RX)
CREATOR OWNER:(OI)(CI)(IO)(F)
CREATOR GROUP:(OI)(CI)(IO)(RX)
Everyone:(OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
They are reported in the cygwin way as
$ getfacl /var/empty
# file: /var/empty
# owner: cyg_server
# group: Administrators
user::rwx
group::r-x
group:SYSTEM:r-x
group:Administrators:r-x
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x
If there are spurious extra ACL permission the usage of setfacl -b /var/empty/ could be useful.
edited Jul 17 '16 at 4:39
answered Jul 16 '16 at 14:46
matzerimatzeri
52135
52135
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
My permissions were not correct, so I ran$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.
– ZuluDeltaNiner
Jul 17 '16 at 16:19
what is the output oficacls $(cygpath -w /var/empty)?
– matzeri
Jul 17 '16 at 17:04
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
add a comment |
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
My permissions were not correct, so I ran$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.
– ZuluDeltaNiner
Jul 17 '16 at 16:19
what is the output oficacls $(cygpath -w /var/empty)?
– matzeri
Jul 17 '16 at 17:04
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
I still get the /var/empty message in sshd.log. I can ssh into that computer from that computer (i.e. localhost), but I can't from my arch machine (it times out).
– ZuluDeltaNiner
Jul 16 '16 at 16:20
My permissions were not correct, so I ran
$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.– ZuluDeltaNiner
Jul 17 '16 at 16:19
My permissions were not correct, so I ran
$ setfacl -s "u::rwx,g::r-x,o::r-x" /var/empty, which gave me this output for getfacl (pastebin). However, I still get the /var/empty error.– ZuluDeltaNiner
Jul 17 '16 at 16:19
what is the output of
icacls $(cygpath -w /var/empty) ?– matzeri
Jul 17 '16 at 17:04
what is the output of
icacls $(cygpath -w /var/empty) ?– matzeri
Jul 17 '16 at 17:04
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
pastebin
– ZuluDeltaNiner
Jul 17 '16 at 17:24
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296275%2frunning-sshd-in-cygwin-var-empty-must-be-owned-by-root%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you install
sshdthrough thecygwininstaller?– Julie Pelletier
Jul 16 '16 at 6:47
yes @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:49
1
it says owned by
cyg_servershouldn't it sayroot? trychown root /var/empty– Jasen
Jul 16 '16 at 6:51
other sites I looked at (including this: stackoverflow.com/a/20473488/1184062), show the owner as cyg_server @JuliePelletier
– ZuluDeltaNiner
Jul 16 '16 at 6:53
It depends on the user the service runs as, and you need to run the
cygwinshell as an administrator. If you're already running it as an administrator, I guess your service could be running as theSYSTEMuser.– Julie Pelletier
Jul 16 '16 at 6:55