Bug 428284 - chown and chgrp commands do not work with ksh
Summary: chown and chgrp commands do not work with ksh
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ksh
Version: 5.1
Hardware: i686
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Tomas Smetana
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-10 14:28 UTC by Christoph Szeppek
Modified: 2008-01-11 06:52 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-11 06:52:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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