Bug 21663 - xinetd gets ROOTs home variables (breaks cvs)
Summary: xinetd gets ROOTs home variables (breaks cvs)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinetd
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-12-03 22:39 UTC by Stephen John Smoogen
Modified: 2007-04-18 16:30 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-12-03 23:12:21 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.