The UNIX and Linux Forums  

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
how to change permissions in a certain directory? praveen_indramo UNIX for Dummies Questions & Answers 1 03-25-2008 09:07 AM
Directory Default Permissions prvnrk UNIX for Advanced & Expert Users 4 10-18-2007 09:22 PM
permissions of a directory smehra UNIX for Dummies Questions & Answers 3 06-04-2006 07:32 AM
determine owner directory permissions from within the directory Sniper Pixie Shell Programming and Scripting 4 03-07-2006 02:06 PM
directory permissions and CHMOD ncarmstrong UNIX for Dummies Questions & Answers 3 08-14-2002 10:00 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-12-2002
Registered User
 

Join Date: Sep 2002
Posts: 2
Question default directory permissions

Hello,

Is there a way to set the default permissions for a specific directory and all it's files and subdirectories?

For example:

I want the general umask to be
-rwxr-x---

But I want the default for the cgi-bin directory and everything below it to be
-rwxr-xr-x

So that when I put a file into the cgi-bin it automaticaly has those permissions applied to it.


Thanks,

Thumpasorus
Forum Sponsor
  #2  
Old 09-12-2002
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
altho i understand what you are trying to do but i have never come across the ability to do this.

to set the default umask for system wide try /etc/default/login or /etc/profile

or to set it for a specific user put it in there ~/.profile

but as far as your cgi-bin dir there is always cron.
  #3  
Old 09-12-2002
Registered User
 

Join Date: Sep 2002
Posts: 2
ty 4 the reply

My problem is this: I set my computer up to be a testing server and my general workflow is--

write
fail
edit
test
edit
test
edit
test
etc...
succeed!

As it stands right now I have to manually change the permissions of the file I am testing every time I edit it. I guess it's not that big of deal if I just use the shells history to repeat the chmod command, but it is irritating and having the computer do it automagically would take one step out of my workflow. Over the long run, that step would add up (and it's one more thing for me to forget to do )

hmmm, perhaps there is another solution. I'm using OSX so I have access to appleScript. I could maybe make a drop folder that changes the permissions, but I know next to nothing of appleScript.

anyone have any ideas?

thanks again,

Thumpasorus
  #4  
Old 09-13-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Re: ty 4 the reply

Quote:
Originally posted by Thumpasorus


write
fail
edit
test
edit
test
edit
test
etc...
succeed!

As it stands right now I have to manually change the permissions of the file I am testing every time I edit it.


anyone have any ideas?
I do not understand why you need to reset the permissions each time that you edit the file. An editor should not do that. But even if that is the case somehow, just switch your workflow to:

first change the umask to want you want
write
fail
edit
test
edit
test
edit
test
etc...
succeed!
now change the umask back
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0