Changeset 20e3fcd


Ignore:
Timestamp:
03/29/2020 12:58:06 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
5e4a124
Parents:
2a9b0c3
Message:

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) ..."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_wrt_Makefile

    r2a9b0c3 r20e3fcd  
    3737crFILELOGDIR   = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE
    3838
    39 SU_LUSER       = sudo -u \$(LUSER) -i sh -c
     39SU_LUSER       = sudo -u \$(LUSER) sh -c
    4040LUSER_HOME     = \$(LHOME)/\$(LUSER)
    4141PRT_DU         = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
Note: See TracChangeset for help on using the changeset viewer.