delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/16/23:11:44

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:content-transfer-encoding
:content-type:message-id:date:from:reply-to:to:subject
:references:in-reply-to; q=dns; s=default; b=LPVkNMwDppaBU9ILrcT
18bHP5IYW6N1TW6H9rhxnAtO5OJvh5cVYbm3/QmvvPo8ZH6MADYEUBoRGjA/DFU/
c5K0daalJQVSeWy9CykNPmShTkvzX6yYz4HrN+ruVG29lEjkpp5/JZ+YJWq3c9it
nSB9Skacy90ThWoxEW09joas=
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:content-transfer-encoding
:content-type:message-id:date:from:reply-to:to:subject
:references:in-reply-to; s=default; bh=ahxGNS+HnU04k7MFdJaipLzWS
78=; b=hw2hPfg9m5ll+we6I6lWjweDOr+KalQl7WVKXO/ES6MPjY3t1hIw2id8X
UX/2eJH06UVEpJU/9pS25a2/7Z3pw+gQw4QFmKM0FDLzNr/lZvv9koyMidS3axpj
bUCoRMUp6ALUwjeWgxCTJ8CUJw5C2vO3H00U1e057Oop1XdwRE=
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.4 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=no version=3.3.1
MIME-version: 1.0
Message-id: <51BE7E47.3010906@cygwin.com>
Date: Sun, 16 Jun 2013 23:11:03 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
To: cygwin AT cygwin DOT com
Subject: Re: Windows 8 permissions broken after a reboot
References: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA AT mail DOT gmail DOT com>
In-reply-to: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA@mail.gmail.com>

On 6/16/2013 9:13 AM, Simon Majou 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)

Did you start whatever your terminal program is with "Run as Administrator"
(I'm not sure how this is translated in the French version of Windows).
Remember, in Windows, even when your account is a member of the
Administrator group, it does not have those permissions by default.
You have to ask for the elevated permission with "Run as Administrator".

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

Don't do this.  It isn't necessary and may cause you trouble in the future.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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