This is the mail archive of the
mailing list for the Cygwin project.
Re: mkpasswd -l and mkgroup -l results: : The RPC server is unavailable
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 2 Feb 2012 10:49:18 +0100
- Subject: Re: mkpasswd -l and mkgroup -l results: : The RPC server is unavailable
- References: <CADex0xxaSkWcAqJSFFdaArGQK3kTERMfnuvT9agr5hbtX5vw_g@mail.gmail.com> <20120131085836.GK18433@calimero.vinschen.de> <CADex0xzqyw-Zh++AXP9MW-EVqAb0J=xn6MuwNL4GkvnqHvc9Fg@mail.gmail.com> <CADex0xx6a_bUeA5A2Rwrdi2g_0Vy2U_wcH1JLZLN0rzDreAh5w@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On Feb 2 01:28, Kenneth Wolcott wrote:
> On Tue, Jan 31, 2012 at 10:12, Kenneth Wolcott <firstname.lastname@example.org> wrote:
> > On Tue, Jan 31, 2012 at 00:58, Corinna Vinschen wrote:
> >> On Jan 30 22:39, Kenneth Wolcott wrote:
> >>> Hi;
> >>> mkpasswd -l /etc/passwd and mkgroup -l /etc/group results: : The
> >>> RPC server is unavailable
> >> The User's Guide may help:
> >> http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup
> >> http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd
> >> Try `mkpasswd -l > /etc/passwd'. ÂOtherwise /etc/passwd is treated as
> >> argument to the -l option.
> >>> Is this a result of Cygwin not being formally supported for 64-bit WIndows?
> >> Who on earth told you that? ÂSee http://cygwin.com/
> >> Corinna
> > ÂOh my! Â:-)
> > ÂMy vision is really getting bad! ÂI did not see that I missed the redirection.
> > ÂThank you for the gentle correction; it works fine now.
> > ÂSorry for the noise.
> > Ken
> Starting the mintty shelll again I get the same message suggesting
> running the mkpasswd and mkgroup.
> I do the command without the -d and everything seems to work.
> mkpasswd -l > /.etc/passwd; mkgroup -l > /etc/group
> I exit the shell and start mintty again and the warning appears again
> suggesting the running of mkpasswd and mkgroup.
> Why doesn't the change persist?
Did you check /etc/passwd and /etc/group if they contain your user and
your primary group account? Are you sure you are using a local account?
Compare the information with the output of
/cygdrive/c/Windows/System32/whoami /user /groups
Important are not the account names, but the account SIDs! You can change
the user and group names in /etc/passwd and /etc/group whatever you like
If you're using a domain account on the machine, you either have to use
the mkpasswd/mkgroup -d option to get the domain and group accounts, or
you can just restrict the files to your user by using the -c option and
append the output to the files, like this:
$ mkpasswd -c >> /etc/passwd; mkgroup -c >> /etc/group
or, in one go:
$ mkpasswd -l -c >> /etc/passwd; mkgroup -l -c >> /etc/group
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple