This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: passwd -R?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]