Oleg Ginzburg
Oleg Ginzburg
@almmos I suppose if you perform ``` chmod 0444 ~cbsd/nc.inventory ``` on remote host, `cbsd rexe node=REMOTEHOST tryoffline=1 date` will work correctly.
Fix in /usr/local/local/cbsd/sudoexec/initenv - https://github.com/cbsd/cbsd/blob/develop/sudoexec/initenv#L920: ``` -- ${CHMOD_CMD} 0660 ${dbdir}/inv.${nodename}.sqlite && ${CHOWN_CMD} ${cbsduser}:${cbsduser} ${dbdir}/inv.${nodename}.sqlite ++ ${CHMOD_CMD} 0660 ${dbdir}/inv.${nodename}.sqlite ${workdir}/nc.inventory && ${CHOWN_CMD} ${cbsduser}:${cbsduser} ${dbdir}/inv.${nodename}.sqlite ${workdir}/nc.inventory ```