public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Erik Soderquist <ErikSoderquist@gmail.com>
To: cygwin@cygwin.com
Cc: Alex P <student00x@gmail.com>
Subject: Re: passwd -R?
Date: Fri, 11 Mar 2016 00:11:00 -0000	[thread overview]
Message-ID: <CACoZoo21tHaXren41wFqmQMWU-cu6d9qyJGdQ5yBUr32eQkLxw@mail.gmail.com> (raw)
In-Reply-To: <14810543544.20160311022206@yandex.ru>

On Thu, Mar 10, 2016 at 6:22 PM, Andrey Repin <anrdaemon@yandex.ru> wrote:
> Greetings, Alex P!
>
>> How do I check that "passwd -R" worked correctly?
>> I get error messages in Event Viewer when I run it as user (vs "As
>> Administrator").
>
> You must use it with elevated privileges. Else it wouldn't work at all.

From https://cygwin.com/cygwin-ug-net/passwd.html

"If normal, non-admin users should be allowed to enter their passwords
using passwd -R, it's required to run cygserver as a service under the
LocalSystem account before running passwd -R. This only affects
storing passwords. Using passwords in privileged processes does not
require cygserver to run."

So without the cygserver running, 'passwd -R' is expected to fail
unless it is running in a privileged shell; if you want it to work
without a privileged shell, you have to have the cygserver running as
a service under the LocalSystem account.

-- Erik

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

  reply	other threads:[~2016-03-11  0:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10 20:57 Alex P
2016-03-10 23:35 ` Andrey Repin
2016-03-11  0:11   ` Erik Soderquist [this message]
2016-03-11 13:47     ` Alex P
2016-03-11 13:53       ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACoZoo21tHaXren41wFqmQMWU-cu6d9qyJGdQ5yBUr32eQkLxw@mail.gmail.com \
    --to=eriksoderquist@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=student00x@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).