Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41759 - portmap-5b-r8: Startup delay due to missing "rpc" user (YP/NIS enabled)
Summary: portmap-5b-r8: Startup delay due to missing "rpc" user (YP/NIS enabled)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
: 43543 53997 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-16 02:09 UTC by Raimund Specht
Modified: 2004-08-01 21:25 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raimund Specht 2004-02-16 02:09:05 UTC
portmap-5b-r8 introduces a new patch (portmap-4.0-rpc_user.patch) that makes portmap to try to setuid() to a user "rpc", and, if no such user exists, to the default user "bin".

I use NFS to mount 3 network filesystems on my system. Since I've upgraded to portmap-5b-r8, I see a one minute delay between the first and the next two NFS mounts.

Solution:
Add a user "rpc" in /etc/passwd (perhaps as an alias for "bin").
Even better: The ebuild should create that user.
Comment 1 gatto 2004-03-02 13:12:03 UTC
This was annoying me too so I added the following patch to the portmap-5b-r8.ebuild to shutup portmap's whining in my logs. portmap uses port 111, which is verified by /etc/services, and 111 doesn't seem to conflict with anything else on my system, so:

+
+pkg_postinst() {
+       enewgroup rpc 111
+       enewuser rpc 111 /bin/false /dev/null rpc
+}
Comment 2 Paul Cassidy 2004-03-02 16:19:14 UTC
*** Bug 43543 has been marked as a duplicate of this bug. ***
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-06-15 12:03:12 UTC
*** Bug 53997 has been marked as a duplicate of this bug. ***
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-08-01 21:25:01 UTC
all set now, thanks.  I didn't bump the revision because it looks like robbat2 is in the middle of some changes already in there, but I added the pkg_postinst suggested by gatto.