Red Hat Bugzilla – Bug 474220
Behavior change for 'chmod -f' between rhel3 and rhel4/rhel5
Last modified: 2010-10-23 02:18:34 EDT
Description of problem:
The chmod command option "-f" does not behave the same between
RHEL 3 and RHEL 5. Assuming the file /tmp/junk does not exist, the
following command produces no output on RHEL 3:
chmod -f 755 /tmp/junk
On RHEL 5 the same command produces the following output:
chmod: cannot access `/tmp/junk': No such file or directory
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run "chmod -f 755 /tmp/nonexistent-file
chmod: cannot access `/tmp/nonexistent-file': No such file or directory
Silence. No error message from chmod.
coreutils-5.97-18.el5 in RHEL 5.3 Beta behaves the same as
coreutils-5.97-14.el5 in RHEL 5.2.
Thanks for report, already reported to upstream with proposed patch (http://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00217.html)
Just as a sidenote - it's not only chmod, but chown/chgrp issue as well ...
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.