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
rmf(1mh)																  rmf(1mh)

Name
       rmf - remove folder

Syntax
       rmf [ +folder ] [ -help ] [ -[no]interactive ]

Description
       The  command  removes all of the messages within the current folder, and then removes the folder itself.  If there are any files within the
       folder which are not part of MH, they are not removed, and an error message is displayed.

       You can specify a folder other than the current folder by using the +folder argument.  If you do not specify a folder, and cannot find  the
       current folder, asks you whether you want to delete instead.

       If the current folder is removed, it makes current.

       Note that the command irreversibly deletes messages that do not have other links, so use it with caution.

       If  the folder being removed is a sub-folder, the parent folder becomes the new current folder, and tells you that this has happened.  This
       provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list  and  returning  to  the  current
       folder from which the list was extracted.

       Using to delete a read-only folder deletes the private sequence and current message information from the file, without affecting the folder
       itself.	If you have sub-folders within a folder, you must delete all the sub-folders before you can delete the folder itself.

Options
       -help	 Prints a list of the valid options to this command.

       -interactive
       -nointeractive
		 Asks for confirmation before deleting a folder.  By default, deletes a folder and its messages without asking	for  confirmation.
		 If  you  specify  the	-interactive option, asks if you are sure before deleting the folder.  You are advised to use this option,
		 since when deletes a folder its contents are lost irretrievably.

Examples
       This example shows how asks for confirmation when the -interactive option is used:
       % rmf -interactive +test
       Remove folder "test"? y

Profile Components
       Path:   To determine the user's Mail directory

Files
       The user profile.

See Also
       rmm(1mh)

																	  rmf(1mh)
All times are GMT -4. The time now is 04:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy