Hi Nick, What is the value of $(user)? And as what user are you running cf-agent?
--Diego On Jun 1, 2012, at 1:47 PM, Nick Anderson wrote: > 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 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine