Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.