Bug 247985

Summary: rusersd doesn't start with rpcbind installed
Product: [Fedora] Fedora Reporter: Jiri Moskovcak <jmoskovc>
Component: rpcbindAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: dfediuck
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.17-48.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-29 19:02:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Moskovcak 2007-07-12 14:51:56 UTC
Description of problem:
rusersd doesn't run with rpcbind

Version-Release number of selected component (if applicable):
rusers-server-0.17-47

How reproducible:
100%

Steps to Reproduce:
1. Try to run rusersd
2. 
3.
  
Actual results:
rusersd won't start - ended with error message: "Cannot register service: RPC:
Authentication error; why = Client credential too weak"

Expected results:
rusersd started

Additional info:
In rusersd drops privileges if it's run with root priv. - works in FC6:
/* Drop privilege */
	if (getuid() == 0) {
		struct passwd	*pw;
 
		if ((pw = getpwnam("nobody")) == NULL) {
			syslog(LOG_WARNING, "Unable to find user nobody: %m");
			exit(1);
		}
		if (setgroups(1, &pw->pw_gid) < 0
		 || setgid(pw->pw_gid) < 0
		 || setuid(pw->pw_uid) < 0) {
			syslog(LOG_WARNING, "Failed to drop privilege: %m");
			exit(1);
		}
	}
If you remove this part, rusersd works ok, but I'm not sure if it's safe. There
is another service in this package "rstatd" which doesn't drop the privileges
and works fine.

Comment 1 Steve Dickson 2007-09-17 12:42:22 UTC
Fixed in rusers-0.17-48.f7

Comment 2 Fedora Update System 2007-09-18 22:31:13 UTC
rusers-0.17-48.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2007-10-29 19:02:58 UTC
rusers-0.17-48.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.