fixing chroot logging
This commit is contained in:
parent
ddfdf83463
commit
85957d4373
@ -212,7 +212,7 @@ EOF
|
|||||||
echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR}
|
echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR}
|
||||||
if [ -n "${REGUSR_PASS}" ];
|
if [ -n "${REGUSR_PASS}" ];
|
||||||
then
|
then
|
||||||
${CHROOTCMD} ${i}/ "echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e"
|
${CHROOTCMD} ${i}/ "echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
fi
|
fi
|
||||||
# COMMENT THIS LINE IF YOU WANT TO SET A ROOT PASSWORD
|
# COMMENT THIS LINE IF YOU WANT TO SET A ROOT PASSWORD
|
||||||
${CHROOTCMD} ${i}/ usermod -L root
|
${CHROOTCMD} ${i}/ usermod -L root
|
||||||
|
Loading…
Reference in New Issue
Block a user