Red Hat Bugzilla – Bug 428284
chown and chgrp commands do not work with ksh
Last modified: 2008-01-11 01:52:31 EST
Description of problem:
ksh fails when executing "chgrp" oder "chown" with reason: Operation not permitted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run ksh
2. Try to change a file's user or group
- An operation-not-permitted-error occurs.
- The file's user / group does not change.
- No error.
- The file's user / group should be set to the specified one.
- The same error occurs on our RHEL 4 AS machines.
- It is probably architecture independend.
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?
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.
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.