#5966 closed bug (fixed)
USER variable in SetupEnvironment doesn't always match the passwd file
Reported by: | augiedoggie | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | - General | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Currently /boot/system/boot/SetupEnvironment always exports the USER variable as baron. This confuses some software which tries to look up the home directory based on this and can't find a baron entry in /boot/common/etc/passwd. Perhaps it should look up this information with something like:
export USER=`grep :0:0: /etc/passwd | cut -f1 -d:`
Change History (3)
comment:1 by , 15 years ago
comment:3 by , 15 years ago
Thanks for the fix. I knew there was a command that would do it but couldn't remember what it was last night.
Note:
See TracTickets
for help on using tickets.
id -un
is probably what you actually want