setfacl -m o:rwx testdir - set access for the specified user
setfacl -m d: o:rwx testdir - set default rights plus a new set of rights specified on the command
check out this link : http://www.centos.org/docs/5/html/De...s-setting.html
text below from this link: http://www-uxsup.csx.cam.ac.uk/pub/d...00000000000000
A Directory with a Default ACL
Directories can be equipped with a special kind of ACL -- a default ACL. The default ACL defines the access permissions all objects under this directory inherit when they are created. A default ACL affects subdirectories as well as files.
Effects of a Default ACL
There are two different ways in which the permissions of a directory's default ACL are handed down to the files and subdirectories in it:
A subdirectory inherits the default ACL of the parent directory both as its own default ACL and as an access ACL.
A file inherits the default ACL as its own access ACL.
All system calls that create file system objects use a mode parameter that defines the access permissions for the newly created file system object:
If the parent directory does not have a default ACL, the permission bits as defined by the umask are subtracted from the permissions as passed by the mode parameter, with the result being assigned to the new object.
If a default ACL exists for the parent directory, the permission bits assigned to the new object correspond to the overlapping portion of the permissions of the mode parameter and those that are defined in the default ACL. The umask is disregarded
Application of Default ACLs
The following three examples show the main operations for directories and default ACLs:
Creating a default ACL for an existing directory
Creating a subdirectory in a directory with default ACL
Creating a file in a directory with default ACL
Add a default ACL to the existing directory mydir:
setfacl -d -m group:djungle:r-x mydir
The option -d of the setfacl command prompts setfacl to perform the following modifications (option -m) in the default ACL.
Take a closer look at the result of this command:
# file: mydir
# owner: tux
# group: project3