Bug 21663

Summary: xinetd gets ROOTs home variables (breaks cvs)
Product: [Retired] Red Hat Linux Reporter: Stephen John Smoogen <smooge>
Component: xinetdAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-03 23:12:21 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 Stephen John Smoogen 2000-12-03 22:39:12 UTC
xinetd like inetd before it gets various enviroment variables of the root
user. One of those variables is $HOME which when setting up a CVS pserver
causes the following problem:

smooge:{public_html}$ cvs co CVSROOT
cvs server: cannot open /root/.cvsignore: Permission denied
cvs [server aborted]: can't chdir(/root): Permission denied

A fix was the following to the /etc/init.d/xinetd file was the following:

root:{/root}# diff -u ./xinetd.orig /etc/init.d/xinetd
--- ./xinetd.orig       Sun Dec  3 17:39:55 2000
+++ /etc/init.d/xinetd  Sun Dec  3 17:34:02 2000
@@ -17,6 +17,9 @@

 PATH=/sbin:/bin:/usr/bin:/usr/sbin

+export HM_TMP=$HOME
+export HOME=""
+
 # Source function library.
 . /etc/init.d/functions

@@ -94,4 +97,5 @@
        RETVAL=1
 esac

+export HOME=$HM_TMP
 exit $RETVAL

Comment 1 Trond Eivind Glomsrxd 2000-12-03 23:12:18 UTC
I'll unset it.

Comment 2 Trond Eivind Glomsrxd 2000-12-04 16:34:32 UTC
Fixed in xinetd-2.1.8.9pre13-3, coming soon to a Rawhide near you.