Set ACL automatically for new folder/objects


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Set ACL automatically for new folder/objects
# 1  
Old 07-13-2010
Set ACL automatically for new folder/objects

Hi,

In our bank production environment - IBM AIX 5.3, we have a particular parent folder inside which an application creates temporary folders & files. These temp folders exist for the lifetime of the user session within the application and then get deleted automatically.

Since these temp folders contain business data, the default permissions is set to 700.

However, frequent 100% utilization of the parent folder now requires me as an application administrator to run usage scripts for housekeeping & information purposes.

The problem: I cannot review usage of the temp folders (due to 700) default setting. We cannot run such scripts via root as per our system admin policies.

What can be done for this ?

Is there anyway to set a default ACL for each new folder/file that gets created and allow access to my application admin user ID ? At least it will allow me to run ls -lR or du command successfully in such cases.

Any help is welcome.

Sample ls output of the application folder:

Code:
 
ls -l /application/saswork

Code:

drwx------ 3 psath118 sasthusr 4096 Jul 13 16:04 SAS_work00D40014C012_saixp82
drwx------ 3 psath054 sasthusr 256 Jul 13 14:17 SAS_work01B3001720A0_saixp82
drwx------ 3 psath043 sasthusr 256 Jul 13 15:21 SAS_work032700131072_saixp82
drwx------ 3 psath060 sasthusr 256 Jul 12 19:50 SAS_work04BB001C5080_saixp82
drwx------ 3 psath043 sasthusr 256 Jul 12 12:28 SAS_work063B0014108E_saixp82
drwx------ 3 psath118 sasthusr 256 Jul 13 16:06 SAS_work06AE000CA08E_saixp82
drwx------ 3 psath007 sasthusr 256 Jul 13 16:05 SAS_work0A790014A080_saixp82

Regards
# 2  
Old 07-13-2010
You can use NFSv4 ACL inheritance flags. Add something like this to your ACL:

Code:
u:your_user: a rwxRAwCc fidi

Note: You *may* need to convert first your current ACL from AIXC to NFSv4.

Last edited by verdepollo; 07-13-2010 at 10:33 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Set ACL permissions Solaris

I want to set ACL permissions using this command in solaris 10 , but I get an error message. server# mkdir dir1 server# setfacl -m user:allan:rwx dir1 setacl error: Operation not applicable Any one can help in this matter. Please use CODE tags as required by forum rules! (2 Replies)
Discussion started by: AbuAliiiiiiiiii
2 Replies

2. Shell Programming and Scripting

Create a shared folder using acl

Hello. I need some help to create a shared folder. A group 'publicuser' has been created. A user 'publicuser' has been created ( no login, no home) and belongs to group 'publicuser'. A public folder '/doc' has been created and owner is publicuser:publicuser. All users belonging to group... (12 Replies)
Discussion started by: jcdole
12 Replies

3. Shell Programming and Scripting

Bash to select oldest folder in directory automatically and log process

The `bash` below uses the oldest folder in the specified directory and logs it. The goes though an analysis process and creates a log. My problem is that if there are 3 folders in the directory folder1,folder2,folder3, the bash is using folder2 for the analysis eventhough folder1 is the oldest... (0 Replies)
Discussion started by: cmccabe
0 Replies

4. Windows & DOS: Issues & Discussions

How to automatically set the DISPLAY var?

Hi all, Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option. The closest I... (3 Replies)
Discussion started by: ejianu
3 Replies

5. Shell Programming and Scripting

want to move set of file from one folder to another folder

Hi all, let me explain my requirments i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead each 5 folders contain 15 files i want to move 10 files to some other folder, remain 5 files should be there in the same folder. give me some suggestion on this. (6 Replies)
Discussion started by: natraj005
6 Replies

6. Red Hat

To set quota on a folder

Hi guys, I know that we can set quota limit for an OS user on a filesystem. But I have a different objective to achieve - can we set a limit on a folder on a filesystem. Let use I have a 'apps' folder in some filesystem. Disc space occupied by 'apps' should not be more that 5GB. ... (3 Replies)
Discussion started by: jredx
3 Replies

7. Shell Programming and Scripting

How to set delete Key to erase automatically

We need to su to root in 1000 systems, so it is almost impossible to add "stty erase ^H" to every .profile on these systems. Is there any way to set delete key to erase automatically after running "su -"? Thanks :) (4 Replies)
Discussion started by: aixlover
4 Replies

8. Shell Programming and Scripting

Automatically creating a folder

Hi How can i create a date folder inside my logs folder everday when a script is run ?? eg : ./logs/20060803/pkm.log where only variable is 20060803 and all other folder name should remain same. Thanks in advance Pankaj (1 Reply)
Discussion started by: pankajkrmishra
1 Replies
Login or Register to Ask a Question