Bug 24256

Summary: /etc/skel/.bash_profile sets empty $USERNAME
Product: [Retired] Red Hat Linux Reporter: John Hardin <johnh>
Component: setupAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-07 15:29:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Hardin 2001-01-18 00:01:53 UTC
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-18 01:43:04 UTC
*** Bug 24257 has been marked as a duplicate of this bug. ***

Comment 2 Trond Eivind Glomsrxd 2001-01-18 01:51:56 UTC
This is now part of bash...

Comment 3 Florian La Roche 2001-02-07 15:29:04 UTC
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 20:07:34 UTC
USERNAME isn't set at all in the current setup.