Bugzilla – Attachment 247181 Details for
Bug 437765
mv command does not inherit ACLs on moved files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
shell script to strip all ACLs and extra attributes from a directory
stripacls.sh (text/plain), 465 bytes, created by
Forgotten User Drfk9mafMw
on 2008-10-22 14:46:25 UTC
(
hide
)
Description:
shell script to strip all ACLs and extra attributes from a directory
Filename:
MIME Type:
Creator:
Forgotten User Drfk9mafMw
Created:
2008-10-22 14:46:25 UTC
Size:
465 bytes
patch
obsolete
>#!/bin/bash > >if [ ! $# -eq 2 ] >then > echo "Wrong parameters!" > echo "$(basename $0) GROUP BASEDIR" > exit 1 >fi > >GROUP=$1 >BASEDIR=$2 > >echo "Removing ACLs, changing GID, removing SGID ..." >setfacl -R -b $BASEDIR >chgrp -R $GROUP $BASEDIR >chmod -R u-s,g-s,o-s $BASEDIR > >echo "Changing Permissions to d755/f644 ..." >find $BASEDIR -type d -exec setfacl --set u::rwx,g::r-x,o::r-x {} \; >find $BASEDIR -type f -exec setfacl --set u::rw-,g::r--,o::r-- {} \; > >echo "Done."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 437765
:
247179
| 247181