![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: ty 4 the reply
Quote:
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 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|