Bug 124866 - konsole: choosing 'new root console' does not run /etc/profile
Summary: konsole: choosing 'new root console' does not run /etc/profile
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kdebase
Version: 2
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-31 16:51 UTC by David Tonhofer
Modified: 2008-08-02 23:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-10-25 19:50:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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