Creating a File system with required permissions for all DIR's created in


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating a File system with required permissions for all DIR's created in
# 1  
Old 06-13-2010
Creating a File system with required permissions for all DIR's created in

Hello All,

I am application admin. I need to clear all the temporary files cleared by the applications. I need help/suggestion that is there any way to create a file system such that every Dir created in by any user will have 775 permissions. So, that i can simply clear the temporary file which helps our application to run smoothly.
# 2  
Old 06-14-2010
Quote:
Originally Posted by firestar
Hello All,

I am application admin. I need to clear all the temporary files cleared by the applications. I need help/suggestion that is there any way to create a file system such that every Dir created in by any user will have 775 permissions. So, that i can simply clear the temporary file which helps our application to run smoothly.
Why do you want this?
Which is your system?
Clearly what is your goal?
# 3  
Old 06-14-2010
@ ygemici

I need to create a file system /tmp such that every directory creted under /tmp must show 775 as permissions when we see ls -la. So that every person of the group will have read write and execute access to the whole file system.
/tmp is used for storing the temporary files. SO if it got filled anyone can clear and work easily............

Thanks,
Firestar
# 4  
Old 06-14-2010
Usually temporary files do not need to be executable... why don't you just remove the sticky bit from the default /tmp???
# 5  
Old 06-14-2010
Then you create another mount point /tmpmyfs on another new ext3 partion and you must mount with 'rw' and 'dmask=002'


like this ...
Code:
mount /dev/sda4 /tmpmyfs -t ext3 -o auto,dmask=002


Last edited by ygemici; 06-14-2010 at 11:45 AM..
# 6  
Old 06-14-2010
I believe dmask is only available as a mount option for vfat or ntfs, not ext3
# 7  
Old 06-14-2010
If you had set an umask of 022 for all users, nothing more would be needed...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in creating a file in required format form another existing file

I have a text file with contents like this: a,b,c, d~e,f,g,h~i,j ,k,l,m~n,o,p,q~ I need to convert this file into this format unix shell script commands: a,b,c,d~ e,f,g,h~ i,j,k,l,m~ n,o,p,q~ as you may have noticed, I need to retain the ~ signs at the end. Any help is greatly... (3 Replies)
Discussion started by: harsha1238
3 Replies

2. Red Hat

List full File system permissions

I am attempting to get a baseline of deployed RHEL 6.5 servers and need to produce a full filesystem permission settings list.....but I forgot the bloody command and am racking my brain and now have a migraine. I just need a simple list starting at "/" right down the tree, listing the folder,... (3 Replies)
Discussion started by: strykergli250hp
3 Replies

3. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

4. Ubuntu

Help, I created a permissions disaster with chown

Ubuntu 10.04, Drupal 7.0 :wall: I created a Linux instance on Amazon AWS using a bitnami Linux image, and had a website up and running using Drupal. Coming from a Windows background I wanted to use a GUI to manage files because it is much faster for me, I got Gnome running on TightVNC by... (4 Replies)
Discussion started by: alterego55
4 Replies

5. Shell Programming and Scripting

Dir permissions

Hi All, I have a script which will be run by another user say user 2 which will create a new dir say dir 4 in my work place and copy certains files from his dir. /t1/t2/t3/dir4 I want to allow the user to create the dir dir4 and copy the files,but bring the control back to my name say user... (2 Replies)
Discussion started by: prasperl
2 Replies

6. UNIX for Advanced & Expert Users

Why root permissions required for creating of RAW Socket

To create RAW socket in Unix/Linux why should one have root permissions? Any other work around to create raw sockets in Unix/Linux using a normal login id? Since I don't have super user credentials and I want to create RAW sockets. Let me know if you are aware of any work around. (3 Replies)
Discussion started by: anilgurwara
3 Replies

7. UNIX for Advanced & Expert Users

files created with different permissions

Hi, Within a SQL file i am calling 5 shell scripts in back ground and redirecting their outputs to different log files in a specific directory. Now when I observed is, the log files are created with different permissions even though i did not do any thing specific. For example in... (2 Replies)
Discussion started by: steria_learner
2 Replies

8. Filesystems, Disks and Memory

Export a file system with write permissions

Hi, Is there a way we can export a file system with write permissions for only one user. For eg. we have many users on the network, but only user2 should have write permissions on the exported file system and for others it should be read-only. (7 Replies)
Discussion started by: jredx
7 Replies

9. UNIX for Dummies Questions & Answers

Help I've created a dir called /

OK, I had some odd characters in my mkdir command which resulted in the following directory getting created: drwxr-xr-x 2 fred fredgroup 512 Apr 12 16:52 / Any ideas how I get rid of it safely? Interestingly that's a straight cut'n'paste and there appear to be some odd... (4 Replies)
Discussion started by: pondlife
4 Replies

10. UNIX for Dummies Questions & Answers

File and Dir permissions

I would like to configure my SuSE 7.0 workstation more securely. I have attempted for about two weeks to find a guideline on good practices for the file and directory permissions.........but to no avail. Does anyone have a guideline that I could use to help me out. I realize that the distros are... (11 Replies)
Discussion started by: thomas.jones
11 Replies
Login or Register to Ask a Question