Bug 428284

Summary: chown and chgrp commands do not work with ksh
Product: Red Hat Enterprise Linux 5 Reporter: Christoph Szeppek <szeppek>
Component: kshAssignee: Tomas Smetana <tsmetana>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.1   
Target Milestone: rc   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-11 06:52:31 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 Christoph Szeppek 2008-01-10 14:28:32 UTC
Description of problem:
ksh fails when executing "chgrp" oder "chown" with reason: Operation not permitted.

Version-Release number of selected component (if applicable):
ksh-20060214-1.4

How reproducible:
always

Steps to Reproduce:
1. run ksh
2. Try to change a file's user or group
  
Actual results:
- An operation-not-permitted-error occurs.
- The file's user / group does not change.

Expected results:
- No error.
- The file's user / group should be set to the specified one.

Additional info:
- The same error occurs on our RHEL 4 AS machines.
- It is probably architecture independend.

Comment 1 Tomas Smetana 2008-01-10 14:44:04 UTC
Does the same work in bash (or any other shell)? On my system everything seems
to work as expected.

Could you also post output of the 'id' command under the user you have
encountered the bug and 'ls -l' of the file you want to change?

Thanks.

Comment 2 Christoph Szeppek 2008-01-10 17:37:54 UTC
I did the tests with as a user with insufficient permissions.
The test works as expected when run as a user with proper permissions.

I still have a problem running a specific shell script that only appears with
ksh but not with pdksh.
It gives random errors not to be able to run cp, chmod and chgrp and did not
appear before the update to version 20060214-1.4.

So what I described is not a bug. We will investigate the problem with the script.

Thanks.

Comment 3 Tomas Smetana 2008-01-11 06:52:31 UTC
OK.  I'll close this bugzilla.  Please open a new one with proper
title/description when you locate the problem with the script.  Thank you.