Bug 24256 - /etc/skel/.bash_profile sets empty $USERNAME
/etc/skel/.bash_profile sets empty $USERNAME
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: setup (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
: 24257 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-01-17 19:01 EST by John Hardin
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-02-07 10:29:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description John Hardin 2001-01-17 19:01:53 EST
The default .bash_profile in /etc/skel sets $USERNAME to "".

It should either set it to $USER, or `id -un` (ala /etc/profile) or leave
it undefined. Setting it explicitly to empty makes no sense.

This problem also exists in 7.0
Comment 1 Trond Eivind Glomsrxd 2001-01-17 20:43:04 EST
*** Bug 24257 has been marked as a duplicate of this bug. ***
Comment 2 Trond Eivind Glomsrxd 2001-01-17 20:51:56 EST
This is now part of bash...
Comment 3 Florian La Roche 2001-02-07 10:29:04 EST
I have changed /etc/skel/.bash_profile to "unset USERNAME"

We should at some point investigate why /root/.bash_profile
sets USERNAME="root" or just through that away.




Comment 4 Bernhard Rosenkraenzer 2001-05-21 16:07:34 EDT
USERNAME isn't set at all in the current setup.

Note You need to log in before you can comment on or make changes to this bug.