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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: <14810543544 DOT 20160311022206 AT yandex DOT ru> Date: Thu, 10 Mar 2016 19:11:37 -0500 Message-ID: Subject: Re: passwd -R? From: Erik Soderquist To: cygwin AT cygwin DOT com Cc: Alex P Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Thu, Mar 10, 2016 at 6:22 PM, Andrey Repin 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