The superuser on a linux system doesn't have to be called root, it only needs to be the zeroth user. But /etc/profile checks the name rather than the number. Reproducible: Always Steps to Reproduce: 1. Change user 0 name to 'gever' in /etc/passwd 2. Update /etc/shadow to match. 3. login as 'gever' Actual Results: The result is immediately visible - the prompt is green instead of red. Expected Results: Test for UID instead of name
Created attachment 50755 [details, diff] Test for $UID instead of `whoami`
looks like your patch is reversed and against baselayout-1.9.x ... baselayout-1.11.x does this correctly: if [ "$EUID" = 0 ] || [ "`/bin/whoami`" = 'root' ]; then