[Pkg-shadow-devel] groupmod: Cannot determine your user name.
tuxce
tuxce.net at gmail.com
Mon Nov 2 20:37:22 UTC 2009
Hello,
I have an error when using groupmod, example:
-------
root ~ # groupadd -g 200 test
root ~ # getent group test
test:x:200:
root ~ # LC_ALL=C groupmod -g 201 test
groupmod: Cannot determine your user name.
-------
Package: shadow
Version: 4.1.4.2
I looked at source code trying to know more about the error, I see at
line 721:
-------
pampw = getpwuid (getuid ()); /* local, no need for xgetpwuid */
if (NULL == pamh) {
fprintf (stderr,
_("%s: Cannot determine your username.\n"), Prog);
exit (1);
}
retval = pam_start ("groupmod", pampw->pw_name, &conv, &pamh);
-------
I think it should be "(NULL == pampw)".
I'm not familiar with such program, so sorry if it's not the right
place for this.
Thanks.
More information about the Pkg-shadow-devel
mailing list