From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63185 invoked by alias); 25 May 2017 21:36:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 63176 invoked by uid 89); 25 May 2017 21:36:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=rx, SYSTEM, acls, StrictModes X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 May 2017 21:36:18 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id E0Qcd5GHEETFpE0Qddw40D; Thu, 25 May 2017 15:36:20 -0600 X-Authority-Analysis: v=2.2 cv=dZbw5Tfe c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=lpTi8ONzQp9_uYJBXbcA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Problems with ssh-host-config and /var/run directory To: cygwin@cygwin.com References: <59272F87.9050300@faroul.de> From: Brian Inglis Message-ID: <63db7c1b-bb96-c809-4a47-e727089d0c8a@SystematicSw.ab.ca> Date: Thu, 25 May 2017 23:04:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <59272F87.9050300@faroul.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfG+EoLvtk9fMmyKaTCSZRd4xS6vi5hZdZ7eVlfp0LW4p2mSXwuHKQHQhQbc0tTHpGmmdXdFbVwmGKpASAlHpASoE1Ci3GOCLFBARKTrRCwFXsu9ApaXw I87upT6+xqlGm8ZTTRDmLJdSYiBtWkD5W7d8WzJj7wBolU1jO3qBecr8kK8vL3QCnfqwPvB0vHkccg== X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00422.txt.bz2 On 2017-05-25 13:24, Henning Peters wrote: > I switched from 32bit to 64 bis a week ago, moved "cygwin" to "cygwin32" and > reinstalled from scratch into a new "cygwin" directory. > when trying to setup sshd using ssh-host-config, I get this message when > using StrictModes (which I want to and did before on cygwin32 on this system): > *** Warning: The owner and the Administrators need > *** Warning: to have .w. permission to /var/run. > *** Warning: Here are the current permissions and ACLS: > *** Warning: drwxrwxrwt+ 1 faroul root 0 May 19 20:56 /var/run > *** Warning: # file: /var/run > *** Warning: # owner: faroul > *** Warning: # group: root > *** Warning: # flags: --t > *** Warning: user::rwx > *** Warning: group::rwx > *** Warning: group:root:rwx > *** Warning: group:SYSTEM:rwx > *** Warning: mask:rwx > *** Warning: other:rwx > *** Warning: default:user::rwx > *** Warning: default:group::rwx > *** Warning: default:other:r-x > *** Warning: > *** Warning: Please change the user and/or group ownership, > *** Warning: permissions, or ACLs of /var/run. > *** ERROR: Problem with /var/run directory. Exiting. > I tried a lot, but cannot find any solution. > Any hints? It's telling you that the Administrators group is missing write access. Do you have a root id on your system or are you using passwd and group files? You could either change group ownership from root to Administrators: $ chgrp -cR Administrators /var/run and if your admin id is not faroul: $ chown -cR /var/run or, to add explicit Administrators group access, and default access to files created, explicit admin id ACL and DACL, and others read and search: $ setfacl -m g:Administrators:rwx,d:g:Administrators:rwx,\ u::rwx,d:g::rwx,o::r-x /var/run add Administrators and admin id to existing files: $ setfacl -m g:Administrators:rwx,u::rwx,\ o::r-x /var/run/* -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple