Sponsored Content
Top Forums UNIX for Advanced & Expert Users Set ACL automatically for new folder/objects Post 302436738 by deepaksinbox on Tuesday 13th of July 2010 04:09:15 AM
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
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
NEW(1)                                                               [nmh-1.5]                                                              NEW(1)

NAME
new - report on folders with new messages fnext - set current folder to next folder with new messages fprev - set current folder to previous folder with new messages unseen - scan new messages in all folders with new messages SYNOPSIS
new [sequences] [-mode mode] [-folders foldersfile] [-version] [-help] fnext is equivalent to new -mode fnext fprev is equivalent to new -mode fprev unseen is equivalent to new -mode unseen DESCRIPTION
New in its default mode produces a one-line-per-folder listing of all folders containing messages in the listed sequences or in the sequences listed in the profile entry "Unseen-Sequence". Each line contains the folder, the number of messages in the desired sequences, and the message lists from the .mh_sequences file. For example: foo 11.* 40-50 bar 380. 760-772 824-828 total 391. The `*' on foo indicates that it is the current folder. The last line shows the total number of messages in the desired sequences. New crawls the folder hierarchy recursively to find all folders, and prints them in lexicographic order. Override this behavior by provid- ing foldersfile containing the pre-sorted list of folders new should check, one per line. In fnext and fprev modes, new instead changes to the next or previous matching folder, respectively. In unseen mode, new executes scan sequences for each matching folder. FILES
$HOME/.mh_profile The user profile PROFILE COMPONENTS
Path: To determine the user's nmh directory Current-Folder: To find the default current folder Unseen-Sequence: The name of the unseen message sequence SEE ALSO
scan(1), mh-format(5) HISTORY
Based on Luke Mewburn's new (http://www.mewburn.net/luke/src/new). MH.6.8 11 June 2012 NEW(1)
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy