RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1222140 - Not all utilities are called with full path in /etc/profile and /etc/profile.d/colorls.sh
Summary: Not all utilities are called with full path in /etc/profile and /etc/profile....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: coreutils
Version: 6.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: Branislav Blaškovič
URL:
Whiteboard:
Depends On:
Blocks: 1172231 1222223 1254457
TreeView+ depends on / blocked
 
Reported: 2015-05-15 21:05 UTC by Yoshifumi Kinoshita
Modified: 2019-07-11 09:10 UTC (History)
3 users (show)

Fixed In Version: coreutils-8.4-42.el6
Doc Type: Bug Fix
Doc Text:
Cause: ls colorizations scripts used just utility names. Consequence: When some mountpoint in the PATH envvar is not yet mounted, these scripts take long time to complete. Fix: Utilities are called with full paths. Result: Unavailable mountpoints no longer affect time of completion of these basic scripts.
Clone Of:
: 1222223 (view as bug list)
Environment:
Last Closed: 2016-05-11 00:31:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0906 0 normal SHIPPED_LIVE coreutils bug fix and enhancement update 2016-05-10 22:51:30 UTC

Comment 2 Ondrej Vasik 2015-05-16 16:44:14 UTC
Customer can modify their $PATH variables, to have /usr/bin , /bin, /sbin and /usr/sbin earlier than /usr/local (which is mounted via NFS). 

Btw. /usr/local is supposed to be used for LOCAL installation of software - and therefore NFS mounting is dangerous - it may break more stuff than just root login ( http://www.pathname.com/fhs/pub/fhs-2.3.pdf ). Maybe /opt is more suitable there.

However, can be adjusted in next coreutils update - although I tend to say this is not really a bug, full path is safer.

Comment 3 Ondrej Vasik 2015-05-16 16:51:22 UTC
(although it is frequently used for sharing applications through NFS, of course - but as I said, with adjustment of PATH, root login delay should not happen)

Comment 4 Ondrej Vasik 2015-06-04 08:39:11 UTC
Can you please file separate bug report for /etc/profile ? This one file is from setup package, not from coreutils - therefore I can't cover it with one bug report.

Comment 5 Yoshifumi Kinoshita 2015-06-04 14:32:37 UTC
Ondrej,
I posted Bug #1228282.

Comment 15 Branislav Blaškovič 2016-02-16 09:45:45 UTC
All utilities from /etc/profile.d/ dir which belongs to coreutils package are typed with absolute path now.

Using package: coreutils-8.4-42.el6.x86_64

# egrep --color=always '(id|tty|tput|dircolors|grep)' -r $(rpm -ql coreutils | grep '/etc/profile.d/')
/etc/profile.d/colorls.csh:     #when USER_LS_COLORS defined do not override user
/etc/profile.d/colorls.csh:    if ( "`/usr/bin/tput colors`" == "256" ) then
/etc/profile.d/colorls.csh:if ( -f ~/.dircolors ) set COLORS=~/.dircolors
/etc/profile.d/colorls.csh:  if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM"
/etc/profile.d/colorls.csh:eval "`/usr/bin/dircolors -c $COLORS`"
/etc/profile.d/colorls.sh:#when USER_LS_COLORS defined do not override user LS_COLORS, but use them.
/etc/profile.d/colorls.sh:  for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \
/etc/profile.d/colorls.sh:      "$HOME/.dir_colors" "$HOME/.dircolors"; do
/etc/profile.d/colorls.sh:      [ "x`/usr/bin/tty -s && /usr/bin/tput colors 2>/dev/null`" = "x256" ] && \
/etc/profile.d/colorls.sh:  eval "`/usr/bin/dircolors --sh "$COLORS" 2>/dev/null`"
/etc/profile.d/colorls.sh:  /usr/bin/grep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return


Old package coreutils-8.4-37.el6.x86_64:
# egrep --color=always '(id|tty|tput|dircolors|grep)' -r $(rpm -ql coreutils | grep '/etc/profile.d/')
/etc/profile.d/colorls.csh:     #when USER_LS_COLORS defined do not override user
/etc/profile.d/colorls.csh:    if ( "`tput colors`" == "256" ) then
/etc/profile.d/colorls.csh:if ( -f ~/.dircolors ) set COLORS=~/.dircolors
/etc/profile.d/colorls.csh:  if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM"
/etc/profile.d/colorls.csh:eval "`dircolors -c $COLORS`"
/etc/profile.d/colorls.sh:#when USER_LS_COLORS defined do not override user LS_COLORS, but use them.
/etc/profile.d/colorls.sh:  for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \
/etc/profile.d/colorls.sh:      "$HOME/.dir_colors" "$HOME/.dircolors"; do
/etc/profile.d/colorls.sh:      [ "x`tty -s && tput colors 2>/dev/null`" = "x256" ] && \
/etc/profile.d/colorls.sh:  eval "`dircolors --sh "$COLORS" 2>/dev/null`"
/etc/profile.d/colorls.sh:  grep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return

Comment 17 errata-xmlrpc 2016-05-11 00:31:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0906.html


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