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 12:07 PM
Directory Default Permissions prvnrk UNIX for Advanced & Expert Users 4 10-19-2007 01:22 AM
permissions of a directory smehra UNIX for Dummies Questions & Answers 3 06-04-2006 11:32 AM
determine owner directory permissions from within the directory Sniper Pixie Shell Programming and Scripting 4 03-07-2006 05:06 PM
directory permissions and CHMOD ncarmstrong UNIX for Dummies Questions & Answers 3 08-14-2002 02:00 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 09-12-2002
Thumpasorus Thumpasorus is offline
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
  #2 (permalink)  
Old 09-12-2002
Optimus_P Optimus_P is offline Forum Advisor  
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 (permalink)  
Old 09-12-2002
Thumpasorus Thumpasorus is offline
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 (permalink)  
Old 09-13-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,126
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
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 02:03 AM.


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