Red Hat Bugzilla – Bug 176708
install(1) does not check failed chown/chgrp
Last modified: 2009-02-24 10:18:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Galeon/2.0.0
Description of problem:
Due to AFS patches and the default --with-afs build the install(1) command ignores any errors on setting owner (-o) or group (-g) and silently returns exit code 0 while leaving the owner/group unchanged.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. su - lace
2. install -o root -g root -m 4755 /bin/true /tmp/test-true
3. ls -l /tmp/test-true
Actual Results: -rwsr-xr-x 1 lace lace 15680 Dec 30 22:58 /tmp/test-true*
Expected Results: install: cannot change ownership of `/tmp/test-true': Operation not permitted
SuSE 10.0 behaves correctly - reports the error as shown above.
Fixing this AFS workaround may affect existing Fedora Core packages relying on successful install(1) with non-standard owner/group while rpmbuild(8) being run as non-root.
The fix should probably check on the failure if the target file is located on AFS volume and inhibit the error only in such case. No patch provided, though.
Thanks for the report. I've removed the AFS special-case in install.c for the