This site is now 100% read-only, and retired.

XML logo

adduser and RPC Connection
Posted by tong on Sat 5 Aug 2006 at 15:17
Tags: none.
[reposted from
Newsgroups: gmane.linux.debian.user
Date: Tue, 18 Jul 2006 11:21:17 +0200
]

hi

whenever I add a user in grml (Debian LiveCD, http://grml.org/), I get the following error:

rpcinfo: can't contact portmapper: RPC: Remote system error - Connection
refused

The respond that I got is that

- the Debian's "useradd" tried to run userauth via NIS by default, which
will make rpc calls/connections.

- The reason that I didn't notice this before is because Debian runs
portmapper by default - which grml doesn't.

Although I get the reason, I wasn't able to get the answer to my question
-- is there any way to disable Debian's useradd from using NIS and making
rpc calls/connections?

Please help

thanks

 

Comments on this Entry

Re: adduser and RPC Connection
Posted by dkg (216.254.xx.xx) on Sat 5 Aug 2006 at 18:43
[ View Weblogs ]
Your title refers to adduser, but your question seems to imply that you are calling useradd. These are different programs, and it's worth being clear what you are running explicitly (though i think adduser calls useradd under the hood).

I don't run grml, so i'm not sure how they have the system configured by default.

can you post the contents of /etc/nsswitch.conf?

man useradd states:

Similarly,  if the username already exists in an external user database
such as NIS, useradd will deny the user account creation request.
But i would think that useradd would only know about the NIS accounts via the name service switch, which should be in /etc/nsswitch.conf.

[ Parent ]

Re: adduser and RPC Connection
Posted by suspended user tong (67.71.xx.xx) on Sun 6 Aug 2006 at 01:47
[ View Weblogs ]
<b><i>Your title refers to adduser, but your question seems to imply that you are calling useradd.</i></b>

Ops, yes, wrong title, I was using useradd.

<b><i>I don't run grml, so i'm not sure how they have the system configured by default.</i></b>

It should be plain Debian Sid, with minimum tweaks.

<b><i>can you post the contents of /etc/nsswitch.conf?</i></b>

-------------------------------
$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files dns
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
-------------------------------

Is it normal?

Oh, I just double checked with "useradd nonono", the problem seems to have gone away. I might need to come back to the topic later. Thanks for your help.

[ Parent ]

Re: adduser and RPC Connection
Posted by dkg (216.254.xx.xx) on Sun 6 Aug 2006 at 02:15
[ View Weblogs ]
That looks like a standard /etc/nsswitch.conf to me, and NIS shouldn't be relevant, since i don't think useradd would bother with netgroup lookups. Weird that the problem is intermittent.

[ Parent ]

Re: adduser and RPC Connection
Posted by suspended user tong (69.158.xx.xx) on Tue 8 Aug 2006 at 02:10
[ View Weblogs ]
thanks dkg for your help.

Just for the archive, in case somebody hit here.

This is the real cause

http://article.gmane.org/gmane.linux.distributions.grml.user/297

in short: debbug 381923

[ Parent ]

Re: adduser and RPC Connection
Posted by dkg (216.254.xx.xx) on Tue 8 Aug 2006 at 05:47
[ View Weblogs ]
Nice to get a diagnosis, anyway... And thanks for pushing through enough to get it in the BTS: that's the way debian improves.

[ Parent ]