From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93069 invoked by alias); 11 Mar 2016 00:11:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 93055 invoked by uid 89); 11 Mar 2016 00:11:51 -0000 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 Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 11 Mar 2016 00:11:41 +0000 Received: by mail-lb0-f175.google.com with SMTP id bc4so134452313lbc.2 for ; Thu, 10 Mar 2016 16:11:40 -0800 (PST) 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) Received: by 10.114.245.101 with HTTP; Thu, 10 Mar 2016 16:11:37 -0800 (PST) In-Reply-To: <14810543544.20160311022206@yandex.ru> References: <14810543544.20160311022206@yandex.ru> Date: Fri, 11 Mar 2016 00:11:00 -0000 Message-ID: Subject: Re: passwd -R? From: Erik Soderquist To: cygwin@cygwin.com Cc: Alex P Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00141.txt.bz2 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