Darryl L. Pierce wrote:
diff --git a/common-post.ks b/common-post.ks index 0c0a3f4..d0a52e9 100644 --- a/common-post.ks +++ b/common-post.ks @@ -146,3 +146,10 @@ EOF # Remove the default logrotate daily cron job # since we run it every 10 minutes instead. rm -f /etc/cron.daily/logrotate + +# add nodeadmin as a valid shell +cat >> /etc/shells <<EOF +/usr/bin/nodeadmin +EOF + +chsh -s /usr/bin/nodeadmin root
This still fails: chsh: unconfined_u:unconfined_r:livecd_t:s0-s0:c0.c1023 is not authorized to change the shell of root You could use augeas: -chsh -s /usr/bin/nodeadmin root +augtool <<\EOF +set /files/etc/passwd/root/shell /usr/bin/nodeadmin +save +EOF But please add Shell option to nodeadmin first, as suggested by Joey. For now just leave bash as root's default shell, and change it to nodeadmin when there's Shell option. _______________________________________________ Ovirt-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/ovirt-devel
