[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

root-owned ~/.cfengine on HP-UX?

From: Luke A. Kanies
Subject: root-owned ~/.cfengine on HP-UX?
Date: Thu, 9 Jan 2003 10:36:55 -0600 (CST)


This is very weird.  I have cfengine compiled exactly the same on both
HP-UX and Solaris 5.8/sparc.  I compiled OpenSSL, BerkeleyDB, and cfengine
all using the exact same arguments on both platforms.  On Solaris,
everything behaves normally, but on HP-UX, I get some very strange

When I run cfagent as a normal user, on a very basic script:

#!/usr/local/install/cfengine/2.0.4/sbin/cfagent -f $0 -v

        actionsequence = ( shellcommands )

        "/bin/echo ${arch}"

the directory ~/.cfengine gets created, but instead of being owned by the
user running the script, it's owned by root, even though the cfagent
binary is actually owned by bin:bin.  I've also chowned db and openssl to
bin:bin.  Nothing in this chain is owned by root, nothing is setuid to
anything, much less to root.

I'm incredibly confused.  It's not breaking any security rules -- you can
normally chown directories to other users, even root -- but it only does
so on HP-UX, not Solaris.

Anyone have any ideas?  Has anyone else run cfengine scripts as a normal
user on HP-UX?  Is there something I could have done wrong in the compile
or anything?  The only abnormal thing I can think of is that I removed the
-lPW from the src/Makefile, in order to get it to compile.

Any help would be greatly appreciated.  Obviously, this limits my ability
to have users use cfengine (which I find extremely useful), because the
users suddenly can't write to their own .cfengine directory.


Windows 95: n.
 32 bit extensions and a graphical shell for a 16 bit patch to an
 8 bit operating system originally coded for a 4 bit microprocessor,
 written by a 2 bit company, that can't stand 1 bit of competition.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]