This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Windows 8 permissions broken after a reboot
- From: Simon Majou <simon at majou dot org>
- To: cygwin at cygwin dot com
- Date: Sun, 16 Jun 2013 16:39:51 +0200
- Subject: Re: Windows 8 permissions broken after a reboot
- References: <CAEoZr1nz6AhQuacV+mv7WCZo+X=4B_tmCHvxuvx5NqQCBVSSQA at mail dot gmail dot com>
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@majou.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