X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type:content-transfer-encoding; q=dns; s=default; b=LXK
	m/YPQLw0qep67wwFcVHs/zuGA1L2NDlig2kYmNuYQOtZLvSlAs50L5uxUrQ+XWLP
	c7JyJAdJ3+QdAJbH0Sx6LhtjeIVDcVZ6mc6TR5dwS6gcQP9HOjslYGj8SCo0g1Tb
	jqcSFRwNf86xXzCD1rc6WY92B0JjTvZX8IuNZqeQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type:content-transfer-encoding; s=default; bh=LjrH9eksf
	8GppKR0PRibSsu17oA=; b=VAsPS0ePxCRAUMC7O5Tt76qQ5OZAseLj7zaGZ6JGn
	s9WiSldkQrlgM7MIuNMJN679ePItepsY1t9tMsuo95DfbdDvnuUxomLXai7ogemF
	grbH/9cgmqQg0WpIMME/inHcCnGtwftZeMR3a3XOVFFgkgF4rMypUah+QEAzqJ4g
	RE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=google.com; s=20120113;        h=mime-version:date:message-id:subject:from:to:content-type         :content-transfer-encoding:x-gm-message-state;        bh=KjPECMDoU6LqDhAHOnastHz7KQlEE8/cdDSBYJ3/XPc=;        b=n3D+qclO+P0A6NrBO4gv3jtFNyHiZtc1ITfX1ZtKxJg5zrvwFdUeYcwdGzO3bTye8z         PtT6hTnv8xvTZDhTFE6gYIs7EfGMHcCluAUHm2ACR6Sd38apFR90Kd4n6/YUK/hjL1L9         ZRzPHYJaFAN3rpa1tLRRg8vtG+E6XeOz0JXBVj622YHIE7rktPNfWhGIcGZJcnttP3le         bFGgHCwCgzBMRfe2kPlgKFKclEW5Ck4vodIY3dhr34STUfoMWwcCU1HLEal86XQoqZDG         /475SZeT/7foj8oVHOpWH0fTS5y3pulVu2eTSYwO7mSRhAaLiTdZkCWG/pnl0EyW+SVk         6DSA==
MIME-Version: 1.0
X-Received: by 10.58.68.138 with SMTP id w10mr2267822vet.92.1371388384913; Sun, 16 Jun 2013 06:13:04 -0700 (PDT)
Date: Sun, 16 Jun 2013 15:13:04 +0200
Message-ID: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA@mail.gmail.com>
Subject: Windows 8 permissions broken after a reboot
From: Simon Majou <simon@majou.org>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-Gm-Message-State: ALoCoQleXseBAsFk2a0siQQWpX9A81xHkf6ujIOPE34CvNbibWo5KoSIA/ndK1PA1HQb+xmTOm3Y
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r5GDDHAJ022445

Hello,

My computer rebooted last night and now sshd doesn't work. The service
doesn't start anymore.

I tried :

$ cygrunsrv -R sshd
cygrunsrv: Error removing a service: OpenSCManager:  Win32 error 5:
Acc▒s refus▒.

(that's access denied)

I re installed cygwin, but I got :

$ ssh-host-config -y

*** Warning: Running this script typically requires administrator privileges!
*** Warning: However, it seems your account does not have these privileges.
*** Warning: Here's the list of groups in your user token:

    Utilisateurs
    HomeUsers


And while my user is Administrator in Windows, in cywin I got :

$ id
uid=1001(simon) gid=545(Utilisateurs) groupes=545(Utilisateurs),1002(HomeUsers)

I tried to update the /etc/passwd to assign my user the Admin group
(as I have in Windows), but then I got :

*** Query: Should privilege separation be used? (yes/no) yes
*** Warning: The owner and the Administrators need
*** Warning: to have .w. permission to /var/run.
*** Warning: Here are the current permissions and ACLS:
*** Warning:     drwxrwxrwx+ 1 simon simon 0 16 juin  15:06 /var/run
*** Warning:     # file: /var/run
*** Warning:     # owner: simon
*** Warning:     # group: simon
*** Warning:     user::rwx
*** Warning:     group::rwx
*** Warning:     group:Système:rwx
*** Warning:     group:Administrateurs:rwx
*** Warning:     mask:rwx
*** Warning:     other:rwx
*** Warning:     default:user::rwx
*** Warning:     default:group::r-x
*** Warning:     default:other:r-x
*** Warning:


Simon

--
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


