Bug 118125

Summary: sudo runs commands with wrong stdout
Product: [Fedora] Fedora Reporter: Aleksey Nogin <aleksey>
Component: sudoAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-17 16:25:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 114961    

Description Aleksey Nogin 2004-03-12 06:58:41 UTC
Sudo recently started redirecting the stdout of the commands somewhere
else.

It works correctly on Fedora Core 1:

% /usr/bin/sudo echo foo > /dev/null
% rpm -q sudo
sudo-1.6.7p5-2

But fails in Raw Hide:

% /usr/bin/sudo echo foo > /dev/null
foo
% sudo-1.6.7p5-18

P.S. really annoying - for example, things like

sudo grep something /var/log/something | less

no longer work as expected :-(

Comment 1 Thomas Woerner 2004-03-15 09:58:29 UTC
I can not reproduce this bug:

$ /usr/bin/sudo echo foo > /dev/null
$ rpm -q sudo
sudo-1.6.7p5-18
$ 

$ sudo grep kernel /var/log/messages | less
Works, too.

Do you have any special settings for root?


Comment 2 Aleksey Nogin 2004-03-15 19:46:38 UTC
> Do you have any special settings for root?

I do not believe so.

Comment 3 Nils Philippsen 2004-03-16 10:35:25 UTC
Perhaps this is some shell issue. From the prompt, it looks like you,
Aleksey use csh/tcsh while Thomas uses bash. Is it like this?

Comment 4 Aleksey Nogin 2004-03-16 11:09:56 UTC
Yes, I use tcsh, but the root's shell is still bash.

Comment 5 Thomas Woerner 2004-03-16 16:01:56 UTC
This is an error in the SElinux patch for sudo.

Comment 7 Thomas Woerner 2004-03-17 16:24:59 UTC
Fixed in rawhide in rpm sudo-1.6.7p5-20 or newer.

Comment 8 Aleksey Nogin 2004-03-18 03:52:46 UTC
Confirming fixed.