Author: pierre Date: Sun Mar 29 05:58:06 2020 New Revision: 4136 Log: Do not use a login shell for LUSER
Most books have something like "exec /bin/bash" in .bash_profile for the building user. This results in stopping and waiting for commands when running a a login shell. The current jhalfs way of removing .bash_profile is suboptimal, since a user may want to login as $(LUSER) and expect that the environment is set (without having to source .bashrc). So remove the "-i" flag in "sudo -u $(LUSER) ..." Modified: jhalfs/trunk/common/libs/func_wrt_Makefile Modified: jhalfs/trunk/common/libs/func_wrt_Makefile ============================================================================== --- jhalfs/trunk/common/libs/func_wrt_Makefile Sun Mar 15 10:15:28 2020 (r4135) +++ jhalfs/trunk/common/libs/func_wrt_Makefile Sun Mar 29 05:58:06 2020 (r4136) @@ -36,7 +36,7 @@ crTESTLOGDIR = /\$(SCRIPT_ROOT)/$TESTLOGDIRBASE crFILELOGDIR = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE -SU_LUSER = sudo -u \$(LUSER) -i sh -c +SU_LUSER = sudo -u \$(LUSER) sh -c LUSER_HOME = \$(LHOME)/\$(LUSER) PRT_DU = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n" PRT_DU_CR = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found --exclude /var/lib / \`\n" -- http://lists.linuxfromscratch.org/listinfo/alfs-log Unsubscribe: See the above information page
