What is Lock folder doing ?

I would like to lock a folder so that I can open the folder and the documents inside it but not alter anything
If you Ctr Click the folder , then press Get Info, you can lock the folder
But what is it doing ?
I noticed that I could not add new files to the folder. That is all.
I do not want to used complicated procedures such as with Disk Utilities

Bomiboll wrote:
Yes sir. That's the situation. I can edit it, I can save it, and to the same place.
It means that this is a flaw in Mac OS.
No, it just means you don't understan Posix permissions and the Access Control Entries.
Locking a folder doesn't do anything but Lock the folder. Access to the contents are still controlled by the Posix permissions and the ACEs. Setting a folder to Locked in Get Info sets the uchg flag. That will prevent you from changing the Folder, but not it's contents, which still have the same settings as they had before you Locked the folder. You can override the delete, but you can't rename or move it (which are the same things in unix), or add items into it. If you want to lock all the files inside, you have to select them all and lock them.
Using the shell,
chflags -R uchg /Users/username/Documents/My\ Locked\ Folder/
In unix, a folder is really nothing but a part of the full name of the file. E.g.
/Users/username/Documents/My\ Locked\ Folder/myFile.txt
A better way to achieve what you want is to set it to Read Only for User, Group, and Others
In the Finder, Get Info on the folder and unlock the padlock on the Permissions section.
Set yourself to read only.
Set the group(s) and everyone to no more than Read Only.
Cick the Gear icon and choose Apply to Enclosed.
In the shell,
chmod -R -w /Users/username/Documents/My\ Locked\ Folder/
The uappend flag is more like what you want. It allows adding to the folder, but not editing the contents.
So, you could lock the folder and set it to not let you change the contents at all with:
chflags uchg,uappend /Users/username/Documents/My\ Locked\ Folder/
However, some programs will allow you to authenticate to make changes to the files, even with those settings.
Then there's Access Control Lists which further add to the complexity. This help page for Tinker Tool System is a brief introduction. If you search for OS X ACL you will find lots of articles on how to set them.

Similar Messages

  • What is 'RocketLifeNetwork' folder doing in my Documents?

    Hello
    Cleaning up my iMac I find RocketLifeNetwork folder with two empty subfolders ('Incoming Things', 'My Things') sitting in my 'Documents' and annoyingly me.
    I wonder if it has something to do with an ex-Kodak Printer software.
    Whatever the cause I need to remove the software generating it.
    Can anyone help?
    Harfx

    Thank you Terence for responding to this message.
    I am using a Canon PIXMA MG5500 Printer.
    Just to add that:
    I checked around with too many printers and cameras installed I cannot locate the main source for adding these folders. So, I accept TD’s query as an answer. I realised that these folders are not important. They look harmless just caused by ‘bad design’ and ‘or rushed to perform’ businesses who should have clearly mentioned creating these folders.
    Harfx, UK

  • I'm trying to transfer music from iTunes on an old PC that uses an external storage device to a new PC (Windows 7) that will use that same external storage device.  I am also dealing with new iTunes 11.  How do I do this??  What folder does iTunes use?

    I'm trying to transfer music from iTunes on an old PC (Windows Vista Home Basic) that uses an external storage device to store the files to a new PC (Windows 7 Starter) that will use that same external storage device.  I am also dealing with the new iTunes 11.  How can I accomplish this successfully?    What folder does iTunes use to store the data in?  I've tried several things.  Home Sharing caused duplicates but not all songs or apps transfered.  It is a large library! I've tried just setting the path in the Advanced Tab of iTunes preferences of the new computer with the external drive connected the same as the path when the external drive is connected to the old computer.  This was the best solution so far but still a few artists missing and some apps. Any suggestions?

    Here are typical layouts for the iTunes folders:
    With iTunes 11 you might also have a Home Videos folder inside iTunes Media.
    In the simplest cases you copy the entire iTunes folder from <User's Music> on the source computer to <User's Music> on the target machine, install iTunes, and it "just works"TM.
    If the media folder (inside the red outline) has been split out to a separate location then you can copy the library folder (outside the red outline) as before and connect the drive holding the media so that it has exactly the same path as before. If the drive appears as D: on one system and E: on the other then the library won't be able to find the media.
    The crucial file is iTunes Library.itl - this contains a record of the tracks that have been added to the library, ratings, play counts, playlists etc.
    See also: Make a split library portable.
    tt2

  • HT4623 My iPad is not responding. It does not unlock. I have a message: iCloud Backup, "This iPad hasn't been backed up in 5 weeks. Backups happen when this iPad plugged in, locked, and connected to Wi-Fi". My Question: plugged in to WHAT? locked, HOW? an

    My iPad is not responding. It does not unlock. I have a message: iCloud Backup, "This iPad hasn't been backed up in 5 weeks. Backups happen when this iPad plugged in, locked, and connected to Wi-Fi". My Question: plugged in to WHAT? locked, HOW? and how to connect to Wi-Fi when my iPad does not respond to anything I do with it? PLEASE HELP.

    Welcome to Apple Support Communities
    Hold Sleep and Home buttons for 10 seconds until your device restarts, so you will be able to use the iPad again.
    The iPad makes a backup into iCloud automatically when it's connected to the network and it is been charged

  • When you are backing up your iPhone or iPad to the Mac, what folder does it go to.

    What folder does a backup from your Iphone or ipad use.

    ~/Library/Application Support/MobileSync/Backup/
    Note: The "~" is your Home folder. Hold the Option key on Go, then select Library.

  • Good morning, I upgraded my mac to the lions and the My Music folder does not show the covers of CDs, anyone know what happens?

    goor morning , i upgraded my mac to the lios and the music folder does not show de the covers of cds,anyone know what happens ?

    *the phone is not blocked in anyway

  • What res folder  does?

    hi all,
    i installed oracle bi on my computer and want to understand about the folder which it has created after installation.
    well can any one tell me what 'res' folder does in oracle bi.
    as it has following two location:
    1. C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res
    2. C:\OracleBI\web\app\res.
    when it is online (on dashboard)which res folder oracle bi use?

    On 31/08/10 8:36 PM, Chad wrote:
    > Hi, all,
    > When I put my eclipse project into ms sourcesafe VSS, the VSS creates a
    > bunch of vssver.scc file on every folder. Now eclipse starts to complain
    > [2010-08-31 10:51:19 - MyProject] C:\MyProject\res\xml\vssver.scc:1:
    > ERROR Error parsing XML: not well-formed (invalid token)
    > [2010-08-31 10:51:19 - MyProject] C:\MyProject\res\menu\vssver.scc:1:
    > ERROR Error parsing XML: not well-formed (invalid token)
    > .......
    > I add the res folder to Source tab of Java Build Path, and put **/*.scc
    > as excluded for res folder, but it does not seem working. Looks like the
    > include/exclude only works for src folder, not res folder.
    > Does anyone know what I should do so eclipse won't pick up those .scc
    > file from res folder?
    Which tool is trying to parse those xmls? You have any VSS plugins for
    Eclipse?
    You can try Resource Filters on the project to exclude the pattern.
    - Prakash
    Platform UI Team, IBM
    www.eclipse-tips.com

  • My Macbook built-in keyboard has stopped responding, (even caps lock light does not come on). What can I do as cannot even login to computer?

    My Macbook built-in keyboard has stopped responding, (even caps lock light does not come on). What can I do as cannot even login to computer?
    There has been no spillage and it has not been dropped.

    Do you have access to a USB wired Apple (or maybe even a PC) keyboard?
    That may be used to help troubleshoot the internal keyboard and on startup
    be able to access (or see if you can) the System, and attempt to see about
    troubleshooting. See if it will start in SafeBoot, (shift key held down just after
    startup tone, if it runs in safeboot, then login to see if you can read system
    logs in Console) and another idea may be to attempt to start in Recovery &
    then attempt to use OS X Utilities there to see if you can verify and then to
    repair the hard disk drive, and do some checks on the hardware.
    •Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    Was the computer an Apple official refurbished unit bought direct from Apple?
    Did you get an extended warranty from Apple - if it were directly bought there?
    Usually these are online purchases from Apple Store; other companies offer
    repaired or restored used computers and call them 'refurbished' or they may
    have bought actual refurbished from Apple stock; these may be resold on ebay
    or via amazon, and may or may not have a residual warranty of some kind.
    In some cases the keyboard may fail due to some connection on the logic board
    not fitting correctly, or some other loose wire; however if the battery may have
    swollen, that could contribute to issues with both trackpad and keyboard.
    A visit to an authorized Apple service provider is recommended, or contact the
    seller you bought yours from to ask if they may offer suggestions or perhaps a
    discount on diagnostic + repair if there is no warranty on the product.
    Find an Apple Authorized Service Provider
    Visit an Apple Retail Store
    https://locate.apple.com/country - locate authorized sales, service, by country.
    Without more information, you may have to look into your local consumer
    protection laws to see if your area may allow you more than others when
    it comes to problems with electronics. If in the EU or UK, it may be longer.
    You could contact a nearby Apple Store with Genius bar for advice...
    Good luck & happy computing!

  • Locked folder I can't get rid of.

    I was burning a data-DVD of some photos when I hit a snag navigating in Finder, and so I control-clicked on Finder and told it to relaunch. But by doing that, it interrupted the DVD burn. Now, I have a folder on my desktop that is called Untitled DVD that is locked, and I can't get rid of it. I can't unlock it either. When I try, Tiger tells me I don't have permission to do that. I tried to move it so it wouldn't be on my desktop, and instead, it just copied it to another folder. So now I have two of these stupid, useless folders.
    So, any ideas on how I can get rid of these folders? They're not taking up that much room, but they are annoying.

    Delete the locked folder with Terminal (in Applications > Utilities):
    1. Open Terminal window
    2. Type 'sudo rm -rf ' (Not the ' marks, just what is between them. Yes, that is a space on the end. _Do not press enter yet_.)
    3. Drag the offending folder into the terminal window. Its path should be entered after the text you have typed. Click in the Terminal window to switch back into Terminal (from Finder).
    4. Press enter/return.
    5. Type your admin password.
    6. Wait until the prompt appears again (may take some time).
    7. Quit Terminal.
    Follow the above instructions *carefully and exactly* (rm -rf is capable of deleting anything).
    Hope this helps...

  • HT203167 The My locked Folder app is missing! I had all of my important files in here and now they are gone where did the app go?

    I had all of my important file in my locked folder and now the app is missing and it is no longer available on the App Store.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Media lock/folder lock/wallet (freeware) for my 58...

    what are the freewareedia lock/folder lock/wallet apps i can use in my 5800 (s60 5th)?
    i just need to lock a private folder with a password...
    thanx

    is the drive formatted FAT? if so the permissions are irrelevant as FAT does not understand unix permissions anyway. however, it does support some (but not all) unix flags including the unchangable flag that is set when you lock a file. however, there seem to be differences in the way flags are set in HFS+ and FAT which lead to some very strange results which I don't understand. I experimented a lot with them a while back with rather weird results.
    when i created a file in OS X and put it on a flash drive i could lock and unlock it without issues both in OS X and windows. no password required. but sometimes (not all the time) some locked files from windows would absolutely refuse to unlock in OS X and some others wold refuse to lock! just as you are seeing. I have no idea what's up with that or what exactly cases this. the bottom line is. if a file refuse to lock or unlock in OS X there is nothing yo can do with it without booting into windows.
    P.S. there have been many posts by others experiencing the same behavior. AFAIK, nobody has fond a way around it.
    Message was edited by: V.K.

  • The name "Folder" does not exist in the namespace

     I am trying to learn Wpf and doing some of the examples on the Microsoft site. https://msdn.microsoft.com/en-us/library/vstudio/bb546972(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
    I am using Visual studio 2013. As I work through the example I am getting the following error. 
    Error 1
    The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
    c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
    11 17
    FolderExplorer
    Error 2
    The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
    c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
    16 7
    FolderExplorer
    Here is the code:
    <Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:my="clr-namespace:FolderExplorer"
        Title="Folder Explorer" Height="350" Width="525">
        <Window.Resources>
            <ObjectDataProvider x:Key="RootFolderDataProvider" >
                <ObjectDataProvider.ObjectInstance>
                    <my:Folder FullPath="C:\"/>
                </ObjectDataProvider.ObjectInstance>
            </ObjectDataProvider>
            <HierarchicalDataTemplate 
       DataType    = "{x:Type my:Folder}"
                ItemsSource = "{Binding Path=SubFolders}">
                <TextBlock Text="{Binding Path=Name}" />
            </HierarchicalDataTemplate>
        </Window.Resources>
    I have a class file named Folder.vb with this code. 
    Public Class Folder
        Private _folder As DirectoryInfo
        Private _subFolders As ObservableCollection(Of Folder)
        Private _files As ObservableCollection(Of FileInfo)
        Public Sub New()
            Me.FullPath = "c:\"
        End Sub 'New
        Public ReadOnly Property Name() As String
            Get
                Return Me._folder.Name
            End Get
        End Property
        Public Property FullPath() As String
            Get
                Return Me._folder.FullName
            End Get
            Set(value As String)
                If Directory.Exists(value) Then
                    Me._folder = New DirectoryInfo(value)
                Else
                    Throw New ArgumentException("must exist", "fullPath")
                End If
            End Set
        End Property
        ReadOnly Property Files() As ObservableCollection(Of FileInfo)
            Get
                If Me._files Is Nothing Then
                    Me._files = New ObservableCollection(Of FileInfo)
                    Dim fi As FileInfo() = Me._folder.GetFiles()
                    Dim i As Integer
                    For i = 0 To fi.Length - 1
                        Me._files.Add(fi(i))
                    Next i
                End If
                Return Me._files
            End Get
        End Property
        ReadOnly Property SubFolders() As ObservableCollection(Of Folder)
            Get
                If Me._subFolders Is Nothing Then
                    Try
                        Me._subFolders = New ObservableCollection(Of Folder)
                        Dim di As DirectoryInfo() = Me._folder.GetDirectories()
                        Dim i As Integer
                        For i = 0 To di.Length - 1
                            Dim newFolder As New Folder()
                            newFolder.FullPath = di(i).FullName
                            Me._subFolders.Add(newFolder)
                        Next i
                    Catch ex As Exception
                        System.Diagnostics.Trace.WriteLine(ex.Message)
                    End Try
                End If
                Return Me._subFolders
            End Get
        End Property
    End Class
    Can someone explain what is happening. 
    Thanks Hal

    Did you try to build the application (Project->Build in Visual Studio) ? If the error doesn't go away then and you have no other compilation errors (if you do you need to fix these first), you should replace "FolderExplorer" with the namespace
    in which the Folder class resides. If you haven't explicitly declared a namespace, you will find the name of the default namespace under Project->Properties->Root namespace. Copy the value from this text box to your XAML:
    xmlns:my="clr-namespace:FolderExplorer"
    The default namespace is usually the same as the name of the application by default so if your application is called "FolderExplorer" you should be able to build it.
    If you cannot make it work then please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • When i go to 'New Folder' the name box only opens for a second so I dont have time to name it correctly. Rename Folder does the same thing - any thoughts??

    when i go to 'New Folder' in outlook the name box only opens for a second so I don't have time to name it correctly. Rename Folder does the same thing. Any thoughts? Many thanks.

    Hi Clint,
    Did you get a reply from anyone for this problem?  I'm having the same problem and wondering what the resolution might be.
    Thanks

  • File or Folder does not exist

    I'm having a wierd problem with a png image which generates an error in my script.
    I'm building a UI using the group constructor, here is the line code I'm using to load the image:
    myImg:Image{text:'',image:'(image_folder)/image.png', alignment:['left','top']}
    The script runs with one image but not another one which is also a png of the same dimensions, bit depth etc. For some reason I get the 'file or folder does not exist' error message. If I replace the image with a known good one the script works.
    I've re-generated the image a dozen times. Still no joy.
    I'm not a total noob, though I infrequently write scripts and am completely prepared to learn I've made totally maverick error.
    Any thoughts?

    myImg:Image{text:'',image:'(image_folder)/image.png', alignment:['left','top']}
    I'm assuming that "(image_folder)" is a placeholder or variable and you are concatinating for the file path to the image? When checking file paths for images or what not, I usually try...
    alert(File.decode(File.openDialog()));
    ...to verify that my path is correct. Sometimes there's a extra slash or something I am missing.

  • HDR Toning Error 48: File or Folder Does Not Exist

    After migrating to a new computer HDR Toning is no longer available.
    I get a pop-up: Error 48: File or Folder Does Not Exist
                             Line 11  -> $. evalFile(g_StackScriptFolderPath + "StackSupport.jsx");
    What's the fix for this, if anyone knows?
    Thanks.

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

Maybe you are looking for

  • How can I create an apple ID without having a credit card, for my IPad??

    I´ve already created the ID, but I´m not allowed downloading apps without reviewing mi ID in the iTunes store. The problem is that while I`m reviewing my account, I´m asked to give a credit card number, etc. there is not another option, at least in t

  • Problems with Palm Desktop 6.2

    I install Palm Desktop 6.2 and HotSync Manager (Windows) in my palm Tx ( I working with windows vista in my pc), after when it is working and I want to enter to the applications this one resetting mi system operation. please help me.

  • Trackpad not sending mouseUp on tap?

    I have a problem with the trackpad on my 17" MBP (2009, unibody). It's not consistent, but it is happening with increasing frequency. I normally have my trackpad set for click on tap (I hate how the whole pad moves for a physical button-click, plus t

  • How do you split?

    In iPhoto '09 I could easily split photos from one event into two events. I can't figure out how to split events in iPhoto '11 though.

  • Active screen corner + incorrect password results in hibernation, help!

    I've got the right top (active) screen corner set to sleep my display. And only recently noticed that, if after using that i try to move mouse or press any key it would ask me for password, which is OK, but the problem is that if after entering incor