I am having trouble to install ssh via Cygwin on my latest new Windows machine with the latest Cygwin version.

*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x..x..[xt]
*** ERROR: Problem with /var directory. Exiting.
$ ls -al /
d--S--s--x+ 1 Matthias Administrators      0 2010-12-06 07:52 var

How can I modify the rights on the directory so that it fits the above mentioned regular expression?

link|improve this question

62% accept rate
I ended up copying the /tmp directory as a workaround as it has the right rights, but I would still like to know the correct answer. – weismat Dec 6 '10 at 14:00
feedback

1 Answer

up vote 1 down vote accepted

This should do it (do both):

chmod 755 /var
chmod ug-s /var
link|improve this answer
I ended up with -S instead of x when running this and thus the sshd would not install. – weismat Dec 7 '10 at 6:54
@weismat: Try also doing chmod ug-s /var. – Dennis Williamson Dec 7 '10 at 11:31
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.