delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/10/19:12:14

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:cc:content-type; q=dns; s=default; b=
Re7bQGC0OjkkUeSesscef8Wpy1vx494zzBHI7yg0IJYOh8xmwc0gFDm/4flXcTyI
KpXefuoCmGy0rnM9d0UwboysJvaat8uFIFk1gwPSnOmyN5F0zdVIpftY/LMXPfuF
95tzpadhc8Hlsmn98qB9wjpCO99mcW9214rBucjBqQE=
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:cc:content-type; s=default; bh=+bw1L
THPOb84DlcMarHBx5ZKaWY=; b=wLCuQjI/3gLyIuwB+xdnMlDqTyebWWFeCdZuU
kyNi9XeLbI3atbDg3mH0F4yRg/47vqunb+/22QkqDUszeLUv7v0zRKeNjdNLbRno
GeDDO4HTOwneZyvesDeAcrJLvuI75gt4KCfZRR97UKWe21O4jUAEKOo94AXcrqpK
tXZqjY=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=D*yandex.ru, passwd, cygwin-ug-net, cygwinugnet
X-HELO: mail-lb0-f175.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=YnaJH/CnIAIIgA+TZe/tNhPvPvQlkLT2+aECGlUhWNo=; b=CRFv4/yOTICT2dFH6TrjdIPkBJpIYnvh9PH2TnlRtLbtSIviQyGjVChMegUp+4YVfY qAR2Z/l9JnR7u0Mc6W+bDNTio6fgxno8HAzoxSMxAeO0VNZoJDS/rqVlZoweB0y5liSM 9kXUMzB5p0/BKlxXC3UczJmilbBJIqzdmvjcHXgZLrowapjkIflPyZTN5mtBn7dDj1rw hiVg8gv1vkwns82nMi4Eh61hZLewiJlXOLO9BPklKFQgkA+fKVhW4zjdXVLM2JYrk8Iz B0bJN1D1LZygbT2Nqro919P4AwkfjRtviVolSF56hCjDNIvYdrV3M/QMM4SMK5rdqxdg 0PHg==
X-Gm-Message-State: AD7BkJJbMuuAeKBckdrhFbjxLCncsbo6eEhd8OPnPYTDlzgSP9tKowZGwgWd9l127MH5KzOKJQoiZ9WaFvr+uQ==
MIME-Version: 1.0
X-Received: by 10.25.170.85 with SMTP id t82mr1744998lfe.57.1457655097920; Thu, 10 Mar 2016 16:11:37 -0800 (PST)
In-Reply-To: <14810543544.20160311022206@yandex.ru>
References: <CA+KYG0H60fK7MFBgAtcmgGWk2yL4_TvUT0r+XtUACgskZ31QtQ AT mail DOT gmail DOT com> <14810543544 DOT 20160311022206 AT yandex DOT ru>
Date: Thu, 10 Mar 2016 19:11:37 -0500
Message-ID: <CACoZoo21tHaXren41wFqmQMWU-cu6d9qyJGdQ5yBUr32eQkLxw@mail.gmail.com>
Subject: Re: passwd -R?
From: Erik Soderquist <ErikSoderquist AT gmail DOT com>
To: cygwin AT cygwin DOT com
Cc: Alex P <student00x AT gmail DOT com>
X-IsSubscribed: yes

On Thu, Mar 10, 2016 at 6:22 PM, Andrey Repin <anrdaemon AT yandex DOT 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

- Raw text -


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