+1 from me, if it's safe (I'm not qualified to say, personally).
-john
On May 13, 2008, at 9:31 PM, Dan Fabulich wrote:
I've rewritten fix-permissions.sh to use absolute paths for find
and chmod, and removed the "-user ${USER}" check. I believe this
modified script should be safe to be configured setuid root. That
way, anybody could run it and clean up anyone's fix-permissions
errors, even if someone else forgot.
I know we've been talking about setting it up as a cron job for
months, but apparently that's politically difficult (I suppose that
it could be more maintenance work). In this proposal, all I want
is for somebody to mark this version of the script setuid root;
it's a one-time-only chmod command.
Unlike the cron proposal, I believe this could actually happen this
week if we decided it should happen.
Agreed?
-------------
echo Checking /www/people.apache.org/repo/m2-snapshot-repository
/usr/bin/find /www/people.apache.org/repo/m2-snapshot-repository ! -
perm 775 -type d -exec /bin/chmod 775 {} \; -print
/usr/bin/find /www/people.apache.org/repo/m2-snapshot-repository ! -
perm 664 -iname maven-metadata.xml* -exec /bin/chmod 664 {} \; -print
echo Checking /www/people.apache.org/repo/m2-ibiblio-rsync-repository
/usr/bin/find /www/people.apache.org/repo/m2-ibiblio-rsync-
repository ! -perm 775 -type d -exec /bin/chmod 775 {} \; -print
/usr/bin/find /www/people.apache.org/repo/m2-ibiblio-rsync-
repository ! -perm 664 -iname maven-metadata.xml* -exec /bin/chmod
664 {} \; -print
echo Checking /www/people.apache.org/repo/m2-incubating-repository
/usr/bin/find /www/people.apache.org/repo/m2-incubating-
repository ! -perm 775 -type d -exec /bin/chmod 775 {} \; -print
/usr/bin/find /www/people.apache.org/repo/m2-incubating-
repository ! -perm 664 -iname maven-metadata.xml* -exec /bin/chmod
664 {} \; -print
-------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john
rss: http://feeds.feedburner.com/ejlife/john