install -d -m2755 a
ls -ld a
drwxr-xr-x 2 root root 4096 Apr 24 04:11 a/
similar problem with mkdir:
mkdir -p -m2755 b
ls -ld b
drwxr-xr-x 2 root root 4096 Apr 24 04:23 b/
The problem is fixed in fileutils-4.0-21 of RH 6.2, but I have not seen
an update for 6.1. I created quite a few rpms which work correctly on
our 6.2 boxes, but they are all messed up on the 6.1 boxes---hence I think
an updated fileutils is important to upload.
The package from 6.2 installs cleanly on 6.1 - there's no reason not
to use it.
The reasoning behind ignoring setuid/setgid in install was an
over-paranoid security thought from one of the fileutils maintainers
(the official version still has that "feature", I've just patched it
out for 6.2).