Bug 124866

Summary: konsole: choosing 'new root console' does not run /etc/profile
Product: [Fedora] Fedora Reporter: David Tonhofer <bughunt>
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: dgunchev, mattdm
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-25 19:50: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 David Tonhofer 2004-05-31 16:51:12 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5)
Gecko/20031007

Description of problem:
So, the title says it all actually. However, is it a bug
or a 'Working As Designed'? (Can you tell I have been working
with IBM ;-)

Actually, /etc/profile is never run, try any:

'New shell'
'New Linux Console'
'New Root Console'
'New Screen Session'

I do not pretend to understand the fine differences between the
above, unfortunately.

Here's the easiest way to test this:

Add this to /etc/profile

date > /tmp/profilerun.$$

Then you can 'echo $$' in your bash and check whether the
file with the correct processnumber has been created.

Maybe this is related to this bug:
  
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=18225

...but again, GUI/terminal/shell interactions are currently out
of my league.

I noticed this because I do root-specific setup in /etc/profile,
like this:

if [ `id -u` = 0 ]; then
  pathmunge /sbin
  pathmunge /usr/sbin
  pathmunge /usr/local/sbin
  pathmunge /usr/local/postfix/sbin
fi

...and the root's path did not include these.


Version-Release number of selected component (if applicable):
kdebase-3.2.2-4

How reproducible:
Always

Steps to Reproduce:
1. Add date > /tmp/profilerun.$$ to /etc/profile
2. Open another shell using konsole
3. Check whether profilerun.$$ exists
    

Actual Results:  /etc/profile has not bee run

Expected Results:  /etc/profile should have been run (IMHO)

Additional info:

Comment 1 Matthew Miller 2005-04-26 15:01:17 UTC
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.

Comment 2 John Thacker 2006-10-25 19:50:09 UTC
Closed per above message and lack of response.  Note that FC2 is not even
supported by Fedora Legacy currently.