Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20140 - baselayout 1.8.6.6 changes to /etc/profile make su weird
Summary: baselayout 1.8.6.6 changes to /etc/profile make su weird
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-28 19:21 UTC by Jordan
Modified: 2003-04-29 13:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan 2003-04-28 19:21:05 UTC
When I su, normally everything works fine and my hostname turns red. When I su
now this doesn't happen. Apparently this change is what did it.
< if [ "`/usr/bin/whoami`" = 'root' ]
---
> if [ "$LOGNAME" = 'root' ]
Logname doesn't change to root for some reason, although using whoami shows me
as root. If I do an su - it works like it should and logname shows me as root.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-29 13:59:00 UTC
Right, change that to '[ "$EUID" -eq 0 ]', it should fix.  Commited to CVS.