Lock files in Finder?

Can you lock files in your Finder? I know you can lock the entire drive, but can you lock a specific one?
This isn't in relation to locking ****, believe it or not :P

Welcome to Discussions - select the file you want, Get Info on it and click the lock at the bottom of the window.

Similar Messages

  • Using Terminal to Find Locked Files

    Hello all,
    I am a photographer and often use the locking feature on my camera to lock certain images, ones that are good shots.  With Windows, I was able to sort by whether a file was locked or not.  However I am finding that Mavericks does not have this feature.  Therefore I have resorted to using terminal to find locked files.  However I was wondering if I could get assistance in creating a script/command that would take the results of the files I found locked and either copy or move them into a subfolder.
    IE: I have an event folder called BRB-Team1VsTeam2.  I use the command "find . -flags uchg" to find the locked files.  What I need to do now is get the returned result and either copy or move into a subfolder called "locked".
    I tried "find . -flags uchg && cp /locked" but I know the logic isn't quite there but I haven't played with terminal too much to know what I am doing.
    So anyone have a solution to this?  Or know of an application to at least let me search/filter/sort by the file status (IE: Locked vs unlocked)?

    Here is the basic idea, adjust as necessary. The -d option limits the depth into the folder you are searching. You don't need it; I just added if you want to limit the depth into subfolders.
    find /search/path -d 1 -flags uchg -exec cp {} /destination/path \;
    You could roll this up in an Automator workflow, Service, or Folder Action if you want:
    By checking the "Show this action when the workflow runs" you can choose the destination folder at run time. If always the same, leave it unchecked.
    A Folder Action would work on the items added to a particular folder. The find command would have to be modified.
    A Service could be used to pick the source folder, or to add a shortcut command.

  • Finding locked files

    I would like to look through my drive for locked files. I cannot find a way to search for them either with the Finder or with a terminal application.
    Does someone know how I might do this?
    Thank you

    Use a command such as:
    find ~ -flags uchg
    to search your home folder. Replace the ~ with a / to search everywhere in the drive you have access to. The schg flag may also be set on a locked file.
    (50693)

  • How to find locked files and unlocked them???

    Having trouble for snxing itunes i need to find locked files but i dont know how and unlocked them so that i can sync again..

    When i connect my ipod into my computer "unknown error occured(-54)" is keep appearing thats why i cant see my library in my ipod.. And i think locked items caused this.. I open once another program that for browsing files to for iphones and ipods and after that the unknown error keep appearing and some of my musics are in grey i cant even delete it

  • Is there a way to find all the locked files my computer?

    I am having trouble importing some files into Aperture and I discovered that one of the reasons might be that some of the files are locked. I know how to unlock them but I'd like to find the locked files and unlock them all at once. Is there a way to do that?

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • How can I find locked files

    Is there a way to search for locked files on a Mac?

    Try the Hidden Files Widget for Dashboard. So you have on Dashboard a button to show or hide your files.
    Tested by me on Snow Leopard and Lion.
    http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html

  • HT2674 I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive. Now, the trash can will not empty some of the files deleted.  File folder: "Core Services" contains a locked file: "boot.efi".  It will not

    I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive which operates from Time Machine.
    Now, the trash can will not empty some of the files deleted from the backup harddrive.
    The trash contains-- File folder: "Core Services" which contains a locked file: "boot.efi". 
    It will not delete.
    How do I get the trash can empty of these files?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • ORA-27086: unable to lock file over NFS -- but it's NOT Netapp!

    My 10.2 database crashed, and when it came back I got the following error:
    ORA-00202: control file: '/local/opt/oracle/product/10.2.0/dbs/lkFOOBAR'
    ORA-27086: unable to lock file - already in use
    Linux-x86_64 Error: 11: Resource temporarily unavailable
    This is a classic symptom of a Netapp problem, which likes to hold file locks open on NFS mounts. There is a standard procedure for clearing those locks; see, for instance, document 429912.1 on Metalink.
    Unfortunately, my files are mounted on an Isilon, one of Netapp's twisted cousins. I can find no references to "isilon" on Metalink, and we are at a loss how to resolve this.
    My sysadmin assures me that "there are no locks on the Isilon". But I know this cannot be the case, because if I do the following:
    1. delete the lockfile /local/opt/oracle/product/10.2.0/dbs/lkFOOBAR, and then
    2. move my controlfiles aside, and then copy them back into place,
    then the database will mount. However, it will not open, because now all the datafiles have locks.
    Is there anyone with experience in clearing NFS locks? I know this is more of a SA task than DBA, but I am sure my SA has overlooked something.
    Thanks

    New information:
    As stated above, I moved the controlfiles aside and then copied them back into place, like this:
    mv control01.ctl control01-bak.ctl
    cp control01-bak.ctl control01.ctlDid that for each controlfile, and then the database mounted.
    But, after rebooting the machine, we discovered that all locks were back in place-- it looks like the system is locking the files on boot-up, and not letting them go. The lock is held by PID 1, which is init.
    sculkget: lock held by PID: 1This is definitely looking like a major system issue, and not a DBA issue, and hence I have little right to expect assistance in this forum. But nonetheless I lay my situation out here before you all in case someone else recognizes my problem before the server bursts into flames!
    The system is CentOS 4.5-- not my choice, but that's the way it is.

  • How do I turn off the requirement to enter my password everytime I want to delete a file in Finder?

    How do I turn off the requirement to enter my password everytime I delete a file in finder?

    Please take these steps if you're prompted for a password when moving items in your home folder to the Trash.
    1. Triple-click anywhere in the line below on this page to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info in Finder (or just Show Info)
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Locked file on desk top

    Hi,
    I had a locked file in the trash and thought i'd drag it out to the desk top and delete the other stuff in there. Well it duplicated itself and I cant get rid of it (BBEdit html file)
    command i and unlock the little lock doesn't help.
    Used option empty to finally empty the trash. Help says I should try this little operation:
    1. Start in single-user mode; for instructions see Mac OS X: How to Start up in Single-User or Verbose Mode.
    2. Type this, followed by Return: mount -uw /
    3. Type this, followed by Return:
    cd /Library/Preferences/SystemConfiguration
    4. Type this, on a single line, followed by Return:
    defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true
    5. Type this, followed by Return: sh /etc/rc
    6. Wait for the on screen text to stop scrolling and then press Return
    7. Type this, followed by Return:
    find / -flags schg -exec chflags noschg {} \;
    8. Once this is finished, type this followed by Return:
    rm /Library/Preferences/SystemConfiguration/autodiskmount.plist
    9. Type this followed by Return: reboot
    I find this to be a tad on the cute side. Beside needing to type that much with no errors, how do people remember it?
    Is there a place to store things so you can find them in single user mode?
    Thanks,
    Garrett

    drag the file to the desktop. Open the Terminal app. Type the following:
    sudo rm
    Make sure there's a space after the rm Then drag the file in question to the Terminal window. Hit Enter. Insert your admin password at the prompt and the file is gone.

  • I recently thought I was updating my Safari browser. When completed, I put all those little files that were on the desktop into the trash. Now my trash is saying it can't be emptied because there are locked files and I don't know how to unlock them

    I recently thought I was updating my Safari browser. When completed, I put all those little files that were on the desktop into the trash. Now my trash is saying it can't be emptied because there are locked files and I don't know how to unlock them or get them out of my trash and they keep multiplying. And to make matters worse, I tried renaming them as pdf files thinking that might do the trick.

    oh boy ! I'd ask you if you knew what kind of files they were or where they came from, but I don't think you could help me a bunch. Try going to the Utilities folder and running Disk Utilities.  If you want to empty the Trash and it won't empty, go to the finder and choose "secure Empty trash". Worse case scenario-you may have to reinstall Snow Leopard, but I don't know what else to suggest. If you have a DVD of Snow Leopard, boot up from that,  and reinstall the OS. This will not touch the stuff you have on your Hard Drive, then you can update from 10.6 to 10.6.8, otherwise Onyx? Maybe those files are part of the OS which needs them to keep running.  if you hold down the Shift key on reboot, you can reboot in Safe mode and maybe you can take the files out of the trash that way
    good luck
    John B

  • Open jpegs from Premier CS3 in PhotoshopCS3 says locked file will not save to jpeg

    When I open a jpeg or tiff, from Premiere to photoshop, and make some modifications (like simply mode to grayscale) and try to save it back to the jpeg it refuses, saying the file is locked and I should go to Explorer, properties and unlock. However the files are not locked in the properties, so my only choice is to save as another file, re-load it itno Premiere, and put it on the timeline. I used to be able to edit directly from Premier to Photoshop, and save - on CS3!
    I have no clue what I might have done to cause this, except it is a fresh install of Master Suite on a fresh install of Vista Ultimate.
    Any help appreciated.
    Jack

    I also realize that my saying, "that is the way it works for me," doesn't help you, since it doesn't work for you. Did it EVER work for you? YES IT DID, THAT IS WHAT IS PUZZLING, AND IN CS3 ALSO.
    Couple of thoughts/questions:
    Are you networked? YES, 2 WSIDE BY SIDE AND A THECUS RAID5 5 TERABYTE DATA BOS WHERE I KEEP MANY VIDEO AND STILLS. Are you logged in as an Administrator? I AM THE ONLY ADMINISTRATOR AND LOGGED IN AS SUCH. Are the Assets on internal (non-mapped) HDDs? IN FACT THE THECUS ACTS JUST LIKE ANOTHER INTERNAL HARD DRIVE, NEVER HAD THIS PROBLEM WITH IT BEFORE. I'M NOT MUCH OF A COMPUTER PERSON, SO NOT EVEN SURE WHAT MAPPED MEANS, BUT WHEN I WAS ABLE TO EDIT FROM PREMIERE BY SIMPLY CLICKING ON EDIT IN PHOTOSHOP, AND THE ASSETS WERE STORED ON THE THECUS, FIXES CAME BACK DIRECTLY TO PREMIERE. NOW THE SAY 'LOCKED' Any on external, or mapped-network HDDs? Are the Assets coming off of some media like CD, or DVD, and not first being transferred to internal HDDs? ALL ASSETS ARE ON INTERNAL DRIVES. I'VE TRANSFERRED SOME MEDIA TO THE SCRATCH DISC INTERNAL DRIVE AND GET THE SAME RESULT. If they originate FROM CD/DVD, are you making sure that they are not listed as Read Only, after copying? ALL I HAVE CHECKED HAVE NO CHECK ON READ ONLY. NONE ARE RECENTLY BROUGHT IN, I HAVE NEARLY 30,000 PHOTOS SEVERAL TERABYTES OF VIDEO. Windows likes to flag them that way, and it can bite you later. Anyone else on your network using these Assets? Are you using them in AE, AI, InDesign, etc., while also using them in Premiere/PS? I ONLY HAVE PREMIERE AND PHOTOSHOP OPEN, I EVEN CLOSED DOWN BRIDGE. Last, do you have Indexing turned on for any of your HDDs, as Windows loves to "lock" files, while it does its indexing. I turn this off for ALL HDDs, especially for my large externals. (Sometimes, when I move the external HDDs from workstation to workstation, XP will turn Indexing back on, and I have to disable this - happens about 10% of the time.) I HAVE RECENTLY INSTALLED COPERNIC TO DO SEARCHING, VISTA IS NOT FINDING THINGS WELL ENOUGH, IT MIGHT BE THE INDEXING, I'LL TRY THAT WHEN I GET BACK THIS AFTERNOON. THANKS FOR THE TIPS AND 20 QUESTIONS. THIS IS THE KIND OF HELP THAT THEY MEAN ABOUT RANDOM ACTS OF KINDNESS, THANKS
    AND PARDON THE CAPS
    JACK
    "Locking" is usually tied into permissions. That's why I ask about the networking aspects.
    Wish I had a quick fix for you.

  • Help with delete duplicate locked files

    I'm kinda new at this so forgive me if I'm a bonehead.
    I made a contribute site, then wanted to disable check in
    check out. All the files have duplicate locked files remaining on
    server and they take eons to ftp. Is there an easy way to delete
    them all? I delete on server and they mysteriously are still there
    the next time I reupload files...I first thought it was a DWMX ftp
    problem, but same deal with GoLive.
    Yipes! Any help is appreciated.

    Hi,
    I have very limited experience with Automator, but my guess is it's not up to the task. I'm trying to do something similar in iTunes but the actions under Finder don't seem to work properly. ( If you select 'Find Finder Items' and set the Whose field to Extension and Is Equal To and use the parameter 'mp3' it seems to work as expected. If you set the Whose field to Name and Ends with it only returns directories.) I'm thinking I need to look into actual scripting. Anyone have thoughts on this?
    Mike

  • Locked files - Dreamweaver CS5.5

    I had to erase my computer's hard drive, reinstall, and bring back my files from the backup drive.  After doing so, Dreamweaver tells me all of my site files "is a locked file and can be viewed but not changed.  What would you like to do with this file?"
    Why are my files locked, and how can I get them unlocked?
    Thank you in advance, for your help!
    Dreamweaver CS5.5  Version 11.5 Build 5315
    Mac OS 10.9.5

    We are restoring from a Time Machine backup to a Thunderbolt drive.
    I checked and changed the preferences in finder, for the Dreamweaver site files, but had no luck.
    I scoured the internet in search of a solution, while the Apple adviser I've been working with, was off for the weekend.  I tried deleting the /user/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/MacFileCache-C92F77BA.dat file.  No difference.  I even deleted the entire Configuration folder.  It didn't make a bit of difference.
    When Senior Apple Adviser, Korrie Smith, got back after her weekend off, she suggested going (in finder) to my user/documents folder and changing the preferences for the folder and everything in it, by selecting "Apply to enclosed items".  And it worked!  Dreamweaver is happy now!  This also resolved the issues I was having with other applications.

  • Cannot Erase Locked Files on External HD

    I have been trying to back up using Time Machine, but my HD is full. So I erase the contents of the HD (previous Backup) by dragging it to the recycle bin and hitting Empty Recycle bin. This process stops as it encounters 2 locked files (no idea what they are: BottX and Boot.efi. ) So these 2 files are on a previous back-up on my HD which i want to erase in order to perform a new back up with TM. Problem is, I cannot find a way to erase those files and dragging them out of the recycle bin onto the desktop and unlocking them on the desktop has not worked. Any ideas?

    I've already tried that. i still get a prompt to do so, but cannot unlock those files while they are in the recycle bin. So I took them out onto the Desktop, unlocked them and nothing. They still show up locked in the bin (hence the HD).
    How can I get rid of the contents pf the HD other than by drapging it to the recycle bin and clicking option Key + empty bin?

Maybe you are looking for