3

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?

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
weismat
  • 343
  • 3
  • 16
  • 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 06 '10 at 14:00

2 Answers2

2

This should do it (do both):

chmod 755 /var
chmod ug-s /var
Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
0

For some reason I also had to execute

chmod 775 /var/*

to get ssh-host-config to work.

mxmlnkn
  • 425
  • 4
  • 12