Neil Brown wrote: > On Monday April 23, neilb@suse.de wrote: >> I think I'll add -u/-g flags >> I might even include the Redhat code in #ifdef, so if compile with >> make RPCUSER=rpc >> it will do the getpwnam.. > > I have added both compile-time and run-time setting of the uid and > gid, and allowed a username to be set at compile time. I have also > made it possible to compile in host-name lookups. The man-page > auto-adjusts to match the compile options. > > make RPCUSER=rpc DAEMON_UID=4 DAEMON_GID=100 USE_DNS=yes > > I think it is now should do all that I want, and should be a slot-in > replacement for any distro that wants it (providing they choose > appropriate Make options). When porting this functionality to rpcbind, I made the setting of the uid a configuration argument (i.e. --with-rpcuser=user) See attached patch... Its basically doing the same thing in a different way... I guess I've become a fan of letting autoconf (and friends) create the makefiles verses me hacking on them... although working with that autoconf API can drive one to drink (which it has ;-) ) but in the end, I do think it makes things a be more configurable... steved.