Red Hat Bugzilla – Bug 176265
/etc/profile needs "$EUID" rather than $EUID
Last modified: 2014-03-16 22:57:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
If a user logs in with ksh selected as their shell, then the $EUID variable (around line 17 in /etc/profile) will not be set, and the user will get a syntax error.
Simply adding double-quotes around the variable fixes this.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.set shell to ksh in /etc/passwd
Actual Results: Get a syntax error at line 17 in /etc/profile, caused by $EUID being undefined.
Expected Results: No syntax error.
*** This bug has been marked as a duplicate of 163637 ***
*** This bug has been marked as a duplicate of 160731 ***