This is the mail archive of the
mailing list for the Cygwin project.
Re: Windows 8 permissions broken after a reboot
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 16 Jun 2013 23:11:03 -0400
- Subject: Re: Windows 8 permissions broken after a reboot
- References: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
On 6/16/2013 9:13 AM, Simon Majou wrote:
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:
(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:
And while my user is Administrator in Windows, in cywin I got :
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.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple