I stumbled on this script today that is using env $HOME and when run from cfengine it always sees that variable as roots home.
I thought that useshell would get me that users normal env but when I run "/usr/bin/env" contain => setuid_sh("$(user)"); I get roots env dumped Q: "...sr/bin/env": USER=root Q: "...sr/bin/env": PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/var/cfengine/bin:/root/bin Q: "...sr/bin/env": MAIL=/var/spool/mail/root Q: "...sr/bin/env": INPUTRC=/etc/inputrc Q: "...sr/bin/env": HOME=/root Q: "...sr/bin/env": SHLVL=2 Q: "...sr/bin/env": LOGNAME=root I must be missing something simple. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine