Per folder umask level??

Hi, I was wondering if it is possible to set the NSUmask level or something similar on a per folder basis??
I have a fairly restrictive set of permissions on my system, but would like to make the Sites folder default to 755 or 754 or something. Is it possible to get this much granularity?
I'm using a client version of OS X10.4.6 if it matters.

Tsunami,
Any new files or folders you create will be created with the permissions set by your umask, and you will only have one umask. If you have changed it to be more restrictive than the "default" umask in OS X ("002," making any new files/folders readable by everyone but only writeable by you), then the more restrictive permissions is what you will always get.
However, the "granularity" of permissions is limitless. The only problem is that you might have to set them manually. This need not be that much trouble, though, as long as you are willing to use Terminal to change them. In this case, I recommend that you not use "absolute" modes ("755," 644," etc.), but instead learn to use "symbolic" modes ("g+r," a+rX," etc.).
You see, any files in your directory structure should never be executable, unless they are meant to be executed (a CGI script would be one example of this, but otherwise web files should not be executable by anyone). You want to be able to make changes recursively, and using absolute modes doesn't fit the bill, here.
Let's assume that you want to make your web folder and its contents viewable by everyone, and at the same time you want to make sure no one other than yourself has write permission. Also, we will assume that all of your files and directories are in place, and that they are all in your HOME web directory (not the main directory in /Library/WebServer). The command to use would be:
<pre style="overflow:auto; font-family: 'Monaco'; font-size: 10px">chmod -R arX,g-w,o-w,uw ~/Sites</pre>
This command is easily modifiable to operate on the "main" web directory, and you could simply make a text clipping of it, keeping the clipping in an easily accessible location. If and when you change the contents of the web directory, you could just open Terminal, drag in the text clipping, then press <RETURN>. Make note of the fact that I used an upper-case "X" to recursively add execute permission. Using the upper-case "X" in a symbolic mode change operates only on directories and files that already have the execute bit set for someone. This is one important reason to use symbolic modes when making recursive changes.
As I say, it need not be any problem. Of course, another solution would be to return to the default umask present in OS X. There are absolutely no security concerns leaving this umask in place, as long as permissions for the folders inside your HOME folder remain at OS X defaults.
Scott

Similar Messages

  • How can I re-establish the notification of the number of mails per folder?

    The number of emails per folder always was shown in thunderbird but with the last updates regularly is lost. In the past the columns shown with the folders could be chosen - how can this be done in the new version (v.24.6.0 under windows 8.1)?

    Do you have this add-in installed:
    https://addons.mozilla.org/en-US/thunderbird/addon/extra-folder-columns/
    I've never had problems displaying the columns, with various TB versions or themes, but maybe you have another add-on that is causing the problem, or your pane layout has changed. What happens if you re-install the EFC add-on?

  • Tell AS to make new folder one level up

    How do I get AS to make a new folder one level up from myFolder i.e.
    set myFolder to ¬
    (choose folder with prompt "Where are the image files for which you want to change exif data ?") as reference
    make new folder at myFolder with properties {name:"Gallery JPEGs"}
    makes a new folder inside myFolder, but how do I tell it to move up one level from myFolder and make a new folder?
    Thanks.
    Pedro

    "AS?" What's that?
    myFolder? What application are you using? I think you are in the wrong forum.
    Shane

  • Writing to XMP file or one file per folder?

    I am about to start using LR2. Used to using PS and Bridge. I use DNG and tiffs, and jpgs. I am used to having one file per folder for bridge's info. I do NOT want an XMP file per picture file. How does LR2 do this? I have read a few posts about XMP files and such. Is there a setting to make one file per folder, or does LR2 make XMP files for each picture?

    >XMP sidecars are only created for proprietary raw files (eg CR2, NEF, etc) and only when you save metadata out to file.
    Good, so since I do not use proprierary RAW's, I am safe. Thanks. I do plan to save metadata to the files, so in the future, other programs can use it.

  • Authorization at Folder Tab level

    Hello Experts
                                 I have design a form which has lots of folder tabs , but now i want authorization at folder tab level, so that only authorized user has access to those tab, while unauthorize user is not able to see content inside the tab
    ex
    user1 - Full authorization
    user2 - No authorization on tab level
    Is it possible
    Plz suggest

    Hi,
    Yes u can write a small logic like that, for a specific user some folders will not be avaliable, for that i suggest u create a new UDT with some cols like user name, and folder item UID to restrict, so that the end user admin can update this table with the required folder item ID and user code as the users can change in the future,
    So u can have a logic like
    If loggedInUser = restrictedUser Then
    msgbox("Not authorized to view this information")
    bubbleevent = false
    End If
    U need to execute this logic in the item click event.
    Hope this helps,
    Vasu Natari.

  • Multiple connections per Folder...

    Is there any way to create multiple imap connections per folder. I have written an exchange conversion utility, and I need to get the mime content of every message in a folder, and right now, that is my bottle neck. I want to thread this section of the code so that I can optimize the conversion. I have tried to increase the number of connection in my connection pool to no avail. After reading the api more closely, it seems to me that only one connection is assigned to each folder, so I can only get mime content serially for that folder. Is this true?
    Thanks,
    Joe Valerio

    I already have the message object with minimal metadata from the original folder. I am using Exchange Web Services to create the mail in Exchange, and it needs the entire mime content base64 encoded, so I do the following...
         // Create the Destination Message and set Props before I set the mime-content...
         MessageType destMessage = MessageUtil.createMessageType(user, message);
         // Convert MimeContent to Base64 and add it to the message.
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         BASE64EncoderStream b64es = new BASE64EncoderStream(baos);
         message.writeTo(b64es);
         b64es.flush();
         MimeContentType mime = new MimeContentType();
         mime.setValue(baos.toString());
         destMessage.setMimeContent(mime);
    I would have to open another folder (one imap request per group of messages), getMessageByUID (another imap request per message) and then write the mime content to the encoder stream. I'll give it a shot, but with the extra traffic, i'm not overly optimistic of a performance boost.
    Thanks for the reply,
    - Joe

  • Keep mail local on per folder basis

    I have multiple email accounts in Mail. One of them is an Exchange account and one of the folders that is shared with me is one called "Public Folders". This folder has sub-folders that I need and sub-folders that I do not need. The sub-folders that I do not need are taking up too much disk space.
    In preferences it gives me the option (per account) to download All message and their attachments or not to download message, etc.
    Question: Is there a way that I can have that option to download messages or not be on a per folder basis instead of on a per account basis?

    No, and you cannot unsubscribe to any mailboxes either. It’s either all or nothing, but setting Keep copies of messages for offline viewing to Only messages I’ve read should be close to what you want, except the junk filter won’t work in that case...

  • File limit per folder?

    I'm having trouble making folder with more than 150 items or so. Is there some unwritten file or file size limit?

    The folder I drug the 19 songs into now has 209 items in it... Guess I should have added that. And it includes folders containing still more songs. The total of folders and sub-folders is 777 MP3 files (I just did that calculation last night too). This MP3 folder has 16 sub-folders and 193 MP3 files at the root level.
    There is a limit to how many files will go in a folder, but I think the limit is in the thousands. I believe there may also be a limit to the number of levels one can have--I once compiled a simple program that had a strange glitch so that it seemed to create an infinite array of subfolders (anyway, far more than I had the patience to check), and its odd behavior produced an error when one ran Disk Repair.
    Afraid I don't know why you can't manage to get more than 150 files when dragging out of iTunes into a folder.
    Francine
    Schwieder

  • Number of folder sub-levels and characters

    Does anyone know:
    a) how many levels of folders are permissible in Mac OS X
    b) how many characters are allowed for file or folder names?
    I have recently switched over to the Mac system from Windows where the I believe the maximum number of "folders within folders" (levels in the hierarchy) is 8, and the maximum number of characters for naming files or folders is 64. My main concern is that backups in Windows are truncated beyond these limits.
    I've searched for answers in Apple tutorials, forums, books (etc.), and even AppleCare was not able to answer these questions.
    Thank you very much!

    Thank you. Surprising that there is absolutely no limit on the number of folder levels and greatly appreciate the specific 255 characters information.
    There is a path length of 1024 as specified by the pathconf() function:
    PC_PATHMAX == 1024
    What this means is if you are going to pass a path to a kernel function (and many library routines), the total string length may not exceed 1024 characters.
    However, if you do something like
    mkdir a
    cd a
    mkdir b
    cd b
    mkdir c
    cd c
    mkdir d
    cd d
    etc...
    you can continue as deep as you wish, you will just need to make sure that when you access any files at the deeper levels that the string specified as the path does not exceed 1024 bytes.

  • Folder Security Level

    Hi,
    I'm a little confused about that you can decide about the securiy
    in different places. I have tre tabs by now and I created a user
    group which should view the contant area but not all folders. In
    access tab on Edit group, I choose all content area --> View
    It's working fine. The user can navigate in content area, but I
    don't succed to make a folder not available to the user group.
    In Edit Folder Optional, I disable folder cashing and
    In Edit Folder Access, Not mark "Make Punlic" + I don't choose
    the user group I created.
    When I view the content area, I can still see the folder!
    All I want is to be able to view content area but not a special
    folder. (The backgroud color of Navigationbar is desapear too
    when I login as a user of the group!!)
    Can someone help me with this?
    Thanks in Advance
    /Mahnaz

    The Edit Group access privileges are global - giving a group
    View privilege on content areas here will allow that group to
    view any content area.
    Remove the privilege in Edit Group if you don't want the group
    to view all content areas.
    Regards,
    Jerry

  • Where to start config for having memo record per profit center level?

    Hi guyz,
    I need to prepare memo record for profit center level.
    We are not activating Cash Management module and only FI-AA, FI-GL, FI-AP, FI-AR, Bank Accounting, CO-OM, CO-CCA, CO-PCA  for the project.
    I am mostly a CO consultant, thus I need your help step by step..
    Where to start and how to do configuration for the memo record?
    Need your help asap...thanking you...

    Hi Maleeq,
    to bring in some clarification. If you consume material from stock, where the MM account determination for the P/L side is a cost element, the system requires you to enter a CO object. In this case the profit center is (always!!!!) derived by the CO object, e.g.:
    - cost center
    - PP order
    - internal order
    - sales order (in MTO scenario)
    - WBS element
    etc.
    If you have PP with a FG as material to be produced, the PP order gets the PC from the FG and all (always!!!!!) postings on this PP order will get the PC from the PP order. This is valid of course only for the P/L side. The stock change/reduction will be credited on the profit center of the RAW.
    And yes, in the material, there is by plant a profit center (marc-prctr), but relevant for PC derivation on the P/L side is the CO account assignment (if cost element).
    If you have a material consumption, where no cost element is created (ususally for the consumption during SD delivery), in this case, the PC is derived from the material master (plant wise).
    regards
    Bjoern

  • Only 6 bookmarks per folder in ios7

    After upgrading to ios7 my bookmarks in safari for both my ipad2 and my iPhone 5 only show the first 6 of each folder. My desktop shows all the correct pages but for some reason my newly upgraded products only show six a piece. I have iCloud sync turned on and it worked just fine in ios6. 

    Here are two screenshots. The first is what I was telling you about as I thought what you meant was that you were saving bookmarks to the Home screen.
    The second print screen is the atual Bookmark list from a folder on my iPad. All this shows is that more than 6 are in the folder.

  • About MailboxCalendar folder Detail Level

    Hi all
    I'm using Exchange server 2013 and when i try to change detail level of 1 room mailbox using the cmdlets. It has below error and i cannot apply setting for the mailbox. Please help me?
    [PS] C:\Windows\system32>Set-MailboxCalendarFolder -Identity roomtest:\Calendar -DetailLevel LimitedDetails
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Value cannot be null.
    Parameter name: url
    Value cannot be null.
    Parameter name: url
        + CategoryInfo          : NotSpecified: (:) [Set-MailboxCalendarFolder], ArgumentNullException
        + FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Exchange.Management.StoreTasks.SetMailboxCa
       Folder

    Hello,
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Cara Chen
    TechNet Community Support

  • Local Root Folder - One Level To High ???

    Hi,
    I'm not sure how to explain this, but I will try.
    When I choose a new local root folder when managing a new site, and lets say I made the folders in advance - desktop>website>images, and when I then choose my local root folder, I'm selecting the folder website press open and then save/select, but then it only saves as desktop while it should be desktop>website, it's the same when I choose the default images folder, I select the images folder press open and save/select, and same thing, it will choose desktop>website while it should be desktop>website>images.
    So to choose the right folder I have to either go one folder extra deep (if any) or write the folder name myself. I have looked around the settings but nothing seems to have anything to do with this, and my searches on Google didn't bring any results, so I hope one of you would be able to help me.
    Thanks
    Kim Celinder
    PS. I use Dreamweaver CS3, and Vista Home Premium x64

    I am also very frustrated!  I am running CS4 on Vista and have the same problem.
    I am in the process of emailing tech support; so far I have been told to run repair on my system or follow Adobe's tutorial for setting up a root folder.  Well... I have already completely re-installed the software (which according to the tech where I work should be better than a repair?)... but I will try that... and I DO know how to set up a root folder so that is not the problem.
    I have one other major issue re my CS4... my help files are not there!  I am not using upgrade software (which is what I thought could be the problem-as an upgrade may not include some things from the previous edition you have installed on your computer)... Adobe gave me the same suggestion to run repair...
    I will respond again if the repair does help.

  • Max images per folder

    I've been trying to teach myself how to make a folder action in Automator which will move any file ending with .jpg from the default download folder to a sub folder named {todays date}, and I'm not doing very well.
    I also want to automatically sort my existing photo collection so that there are no more than 200 images in each folder, with the folder names auto created sequentially 001, 002 etc.
    I don't know the first thing about scripting of any kind, but I can't help feeling like there should be a workflow already out there somewhere which will do this for me; unfortunately automator.us and numerous other great sites come up short.
    I managed to get someone to help me with this once before, using applescript, but for some reason it broke with 10.4.5.
    Thanks in advance, Jim.
    Mac Mini   Mac OS X (10.4.1)   The moon isn't round.

    For this type of folder action AppleScript is preferred as it will run as script, instead of launching a whole Automator Application (think bouncing dock, think losing focus, think spinning beach ball). If you've already got a script that's merely held up by a tiny bug, why not post the code and let us patch it up for you?

Maybe you are looking for

  • Small Office Network Solution for Final Cut Server - Proxy Storage Etc.

    Hi, I haven't been able to find any answers for this question by googling, So I would love if anyone here had some advice. I have the 10 License version of Final Cut Studio with 5 clients at the moment. I would like to set-up our office in the most e

  • What software is best to use to create an interactive CD?

    Hi I'm creating an interactive cd rom. I have made several interactive CDs already using a really basic bit of software called Autoplay Menu Builder (made by a company called Linasoft) but it has several limitations. Basically it needs to be an easy

  • Rep: Fatal pl/sql  error Occured

    Hi All I have created one formula display chassis number based on Process(line_code). When compile time its no error , but if i have pass parameter running time its generate the report error Rep-0069: Internal error Rep-57054 : In-Process job termina

  • Switch iPad mini to PAL output through Lightning HDMI?

    Hi, I want to use my iPad mini as a source to play my own backing footage into a TV studio. I'm using Apple's lighting to HDMI converter. When I hook it up to the Blackmagic TV studio it only works if I set the frame rate on the Studio  to 720p at 59

  • Macbook Pro starting problem

    I have a massive problem, thanks in advance if some one can help. I have a mac book pro 15 inch mid 2010 with the latest operating system. when i start the the computer i get the screen attached as a photo then a black screen and then it turns off an