Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 2 down vote accepted

This should do it (do both):

chmod 755 /var
chmod ug-s /var
share|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

For some reason I also had to execute

chmod 775 /var/*

to get ssh-host-config to work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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