Bug 1671475 - devtoolset-7 sudo doesn't work with -E
Summary: devtoolset-7 sudo doesn't work with -E
Keywords:
Status: CLOSED DUPLICATE of bug 1319936
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: devtoolset-7
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
: 3.3
Assignee: Marek Polacek
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-31 16:34 UTC by Renato Botelho
Modified: 2019-01-31 17:35 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-31 17:35:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Renato Botelho 2019-01-31 16:34:47 UTC
Description of problem:
Together with devtoolset-7-gcc a shell script wrapper for sudo is installed under /opt/rh/devtoolset-7/root/usr/bin. This wrapper uses -E option to pass necessary environment vars to make sudo working as desired but if user pass -E argument for sudo it fails.

Version-Release number of selected component (if applicable):
7.1-4.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1.yum install devtoolset-7-gcc
2.scl enable devtoolset-7 bash
3.sudo -E ls

Actual results:
/var/tmp/scl8zRdWD: line 8: -E: command not found

Expected results:
ls output

Additional info:

Comment 2 Marek Polacek 2019-01-31 17:35:24 UTC

*** This bug has been marked as a duplicate of bug 1319936 ***


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