Sticky Folders


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sticky Folders
# 1  
Old 10-16-2008
Sticky Folders

Hello everyone

I've got a shell script that kicks off a number of django web sites. It allocates socket files in a sockets folder that the nginx uses to pass requests upstream.

Problem is on my new ubuntu box, the script seems to run but the socket files that are created don't have the correct permissions.

I need them all to be 777 in order for this to work.

Can anyone tell me how I'd set the permissions on the folder so that any new files created in that folder are created with a 777 permission set?

I think this is sticky folders, although I'm not sure.

Any help, as always, greatly appreciated.
# 2  
Old 10-16-2008
Sticky bit on directories will not help on this; from man chmod:
Code:
STICKY DIRECTORIES
       When the sticky bit is set on a directory, files in that directory may be unlinked or renamed only by root or their owner.  With-
       out the sticky bit, anyone able to write to the directory can delete or rename files.  The sticky bit is commonly found on direc-
       tories, such as /tmp, that are world-writable.

Afaik, there is nothing like this to tell a directory that everything that will be created in it, will have a special set of permissions. There is "umask", but is per shell and not per directory and you can't set a mask that will give the execute bit from the start.
Maybe a cronjob with "chmod -R a+x /yourdir" or something running every minute might help.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Searching for folders/parent folders not files.

Hello again, A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x. I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Discussion started by: Aussiemick
2 Replies

2. Shell Programming and Scripting

Making 99 folders 99 folders deep

I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies

3. AIX

Sticky Bit

What is sticky bit ...and where we aill use this.. how to set this bit in files and directories (1 Reply)
Discussion started by: udtyuvaraj
1 Replies

4. UNIX for Advanced & Expert Users

sticky bit

Hi, I understand the purpose of sticky bit on directories. But I am not very clear about what the sticky bit do on a file. Can any one explain me in detail and with example please. Thanks in advance. (1 Reply)
Discussion started by: praveen_b744
1 Replies

5. UNIX for Dummies Questions & Answers

Sticky Bit????

HI What is sticky bit? how can be see if the sticky bit for file is set? WHat is meaning of sticky bit set on Directory? What is the syntax to set the sticky bit? With example Thanks (10 Replies)
Discussion started by: skyineyes
10 Replies

6. UNIX for Dummies Questions & Answers

Sticky Bit

Hi, could anyone please send me a link to learn/ know more about sticky bits? I am still not clear on the application of using a sticky bits. Thanks for your help. Regards, UP (3 Replies)
Discussion started by: teenu18
3 Replies

7. Shell Programming and Scripting

sticky bit

Hi frns, What is command to list out all dir's for which sticky bit has been set. Regards, Manu (2 Replies)
Discussion started by: manu.vmr
2 Replies

8. UNIX for Dummies Questions & Answers

Sticky Bit

I have the sticky bit set on my /tmp directory, but users are still able to remove files that are not owned by them. Does the /etc/group file get invloved in securing these files ?? (1 Reply)
Discussion started by: rob11g
1 Replies

9. UNIX for Dummies Questions & Answers

Sticky bit

I have a questions, whose answer may be very obvious: Of what use is the sticky-bit permission on a Unix system? I have looked at the chmod(1) man page on our HP-UX playground system, and haven't been given much explanation: Add or delete the save-text-image-on-file- execution (sticky... (3 Replies)
Discussion started by: LivinFree
3 Replies
Login or Register to Ask a Question