delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/16/10:40:09

X-Recipient: archive-cygwin AT delorie DOT 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:in-reply-to:references:date
:message-id:subject:from:to:content-type
:content-transfer-encoding; q=dns; s=default; b=oMvzUr37+Dj7nr4/
fx3ZT8+lfMx0jI4t+RKx24QW0RyY3jgDA1au9hozFtcM/itmjvD+DBlIowFrw41/
Op8aDg0qzXqEGTBrWBSdfcB5TdvM4DGjPyYNhAwCUvXQIIe7BZNyVNc1FQfNVbja
9i1aH7FpePBp0TF4rGOxZuDOY+4=
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:in-reply-to:references:date
:message-id:subject:from:to:content-type
:content-transfer-encoding; s=default; bh=wHcF3m03I0lc+cdfOi4HPt
mP/mo=; b=gQ+VpO7Ak/1Ps+RiaORZRDtxSegY7urcirs+WgwO6ebaCGnaDWY19w
z5BLbA9fi4DjvVDGXcEoZN1K1GApwdHTW76yX2UgA5NBfuzBY5yq2xcLLFhiIQ5R
IjxNv6l3v3rLxy8IAO/TrNDdFFHQ922q/FX4iyxILbtLSlFj2d0i8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,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:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding:x-gm-message-state; bh=FtyNV2hWjdiH8Ow0NhjwAxyLbrIEtelF0mzaCAKBDAg=; b=TdobqqLo8ucWOK9TqA7FjqUUo7emwVyIfGFosDwFISmmCkPQUKeWE/cw0WOdlcWhGM N6EQmxnAF4f3PbC3GHiRMbWEr/8jdJx32RH7NXGh1tHILF6dlJnsR4JQRL5Wp9d/vxNn hvaQoxxJ4URU8RT2Q5muL41cfG63QEAFYjIWwPH+88JDy8dxtuYkPw5hbxFIPY4ePwzC mRHvP8JUMyc34U4xC4UsPg0/Z5ZsK02lajqg5Ydt2+qZ4BreCjFxrowqa8rBYVECT4AC zGfGTJNTZhCL+d7kWCyLJ3rMIUKyyVPJxiAkbHpzZH7ZR0k0g7zP3hBD4eRZDVcBDXr3 tjiQ==
MIME-Version: 1.0
X-Received: by 10.52.22.228 with SMTP id h4mr2625669vdf.14.1371393591511; Sun, 16 Jun 2013 07:39:51 -0700 (PDT)
In-Reply-To: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA@mail.gmail.com>
References: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA AT mail DOT gmail DOT com>
Date: Sun, 16 Jun 2013 16:39:51 +0200
Message-ID: <CAEoZr1mVE4UV=QLhGkcEuMRf8vhv1zj0rqopPV8JHy-tEpUv6g@mail.gmail.com>
Subject: Re: Windows 8 permissions broken after a reboot
From: Simon Majou <simon AT majou DOT org>
To: cygwin AT cygwin DOT com
X-Gm-Message-State: ALoCoQkXL95bUrK1ZQ00UyxP6octbqM8q7E+zRJub+3yyGJTbrvB+FgFKCuaVMl/6ikpdYXVPo+n
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r5GEe5HL030327

I think since last reboot I switched my user to a local account, and
back to a MS (internet) account. It is probable that which caused the
issue.

Simon


On Sun, Jun 16, 2013 at 3:13 PM, Simon Majou <simon AT majou DOT org> wrote:
> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019