The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sticky bit praveen_b744 UNIX for Advanced & Expert Users 1 07-25-2008 09:28 AM
Sticky Bit teenu18 UNIX for Dummies Questions & Answers 3 12-17-2007 03:08 PM
Copying Folders without some folders... ;-) chimpu UNIX for Dummies Questions & Answers 5 04-26-2004 12:25 PM
Backing up Folders without some folders...;) chimpu Shell Programming and Scripting 1 04-26-2004 10:02 AM
Sticky bit LivinFree UNIX for Dummies Questions & Answers 3 07-20-2001 11:28 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2008
mjdavies mjdavies is offline
Registered User
  
 

Join Date: May 2002
Posts: 2
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 (permalink)  
Old 10-16-2008
zaxxon's Avatar
zaxxon zaxxon is online now Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,272
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0