Trouble with locked/read only files and folders

After reinstalling OSX I have an external harddrive with locked files and folders. I´ve heard that it is possible to unlock all files and folders from Terminal (it will take hours to unlock manually). Anyone who knows a script that will set read and write access to all files and folders on a hard drive?

For locked HDs and volumes:
http://discussions.apple.com/thread.jspa?threadID=2329689
Also, see Niel's guide.

Similar Messages

  • Read-only files and folders

    I would like to add ilustrations to mp3 files that I adeed to my iTunes library. However, some of the iTunes folders seem to be read-only. I tried to uncheck them but when I restart iTunes they are read-only again.
    Any advice ?

    For locked HDs and volumes:
    http://discussions.apple.com/thread.jspa?threadID=2329689
    Also, see Niel's guide.

  • Shared Computer over Ethernet is creating read-only files and folders

    Hi,
    I have set up a ssecond mac connected to my G4 via ethernet connection. We are both using my mac as the main computter and both working from one folder on it. BUT when the second computer creates a folder or saves a job into this folder the permissions are set for them to 'read only'.
    How do you make it so whatever they create is all read and write.
    The second mac is logining is not as the administrator but as a normal user. I do not want them to have full access.

    Hello DH-Studio
    Hi, this is still causing me problems, is there another way?
    Sharepoints does work howerver the other way to do this that does not involve using UNIX commands is to run Server Software such as Mac OSX Server.
    The 10 User licenced version is affordable and it has an excellent GUI called the Workgroup Manager which can setup sharepoints, users & groups permissions very easily. It has many other benefits.
    Other than that their are UNIX commands such as umask. However I have no experience using umask and I understand it make global changes to your system. I would avoid using it.
    You also could setup a crontab rule that changes the permissions on the shared folder every minute. In your terminal use the following commands
    sudo nano /etc/crontab
    You will then see
    using your arrow key move the cursor down to area indicated in my example then enter the following information
    */1 <press tab twice> * <tab> * <tab> * <tab> * <tab> root <tab> chmod -R 777 /shared
    it should look like the following
    replace "/share" with the actual path to your sharedfolder
    Then close the file with "control +O", then "return" then "control X"
    Now any file that is saved to your share folder will be readwrite to everyone every minute. This is a clumsy method but it works.
    iBookG4 1.33ghz. 20inch iMacG5, 1.2ghz Mac Mini, ipod video, iSight   Mac OS X (10.4.3)   Linksys WRT54gs+1.05 Talisman Firmware, Telewest 10mb/384k

  • ODC Import Server - Working with emailed read only files

    When running the ODC import server as a service or as an application we sometimes get users that send us emails with "read only" attachements. ODC will get stuck on these emails becasue excel will prompt to open the read only file.
    Is there a way we can easily get around this problem? Is there an ODC setting or an Excel setting that I can use to always open all excel documents?
    Data_Bitz

    You are missing an indexing step, which can't be done automatically without the Recognition server (or manual indexing). ODC manual explains briefly on the 34th page:
    Import Server, which imports images and other electronic documents directly into Capture from sources such as email, FTP sites, network folders, list files, and fax providers. As images and electronic documents are imported, they are converted into Capture batches where they can be indexed using Index or Recognition Server and then committed.
    I use import server only for importing network folder scans and assigning them to the appropriate batch for manual indexing, so can't give you an elaborated advice.
    Regards,
    Boris
    Edited by: tombo on 2011.09.14 01:21

  • Trouble with Applescript Reading a File

    Hello everyone,
    I am having trouble getting applescript to read a file. Here is my script:
    on open theItems
        tell application "Finder" to set theItems to (sort theItems by name)
        set pastContentsOfI to "DONTDELETETHISTIME"
        set pastPathOfI to "DONTDELETETHISTIME"
        repeat with itemI in theItems
            set itemI to POSIX file itemI
            open for access itemI
            set iContents to (read itemI)
            close access itemI
            if (iContents = pastContentsOfI) and (pastPathOfI ≠ "DONTDELETETHISTIME") then
                do shell script "rm " & (POSIX file pastPathOfI)
            end if
            set iContents to pastContentsOfI
            set pastPathOfI to itemI
        end repeat
    end open
    It is a script that checks for consecutive duplicates in a group of files. However, when I drop a group of files into it, I get this:
    Any ideas? ("106.png" is the first file in my group of items)
    Thanks so much!
    -Elijah

    The whole script would look like this, unless you wanted to streamline it:
    on open theItems
              tell application "Finder"
                        set theItems to (sort theItems by name)
                        repeat with itemI in theItems
                                  set contents of itemI to itemI as alias
                        end repeat
              end tell
              set pastContentsOfI to "DONTDELETETHISTIME"
              set pastPathOfI to "DONTDELETETHISTIME"
              repeat with itemI in theItems
                        set iContents to (read itemI)
                        if (iContents = pastContentsOfI) and (pastPathOfI ≠ "DONTDELETETHISTIME") then
      do shell script "rm " & (POSIX file pastPathOfI)
                        end if
                        set iContents to pastContentsOfI
                        set pastPathOfI to itemI
              end repeat
    end open
    The first little repeat loop that I added is a bit on the tricky side.  what's happening is this:
    The sort command returns a list of Finder object references (they look like File X of folder Y of Disk Z). Only the Finder and System Events know what to do with these; outside of Finder and SE tell blocks they throw errors.  the trick is to convert these to alias format which is recognized by applescript everywhere.
    the repeat loop runs through the theItems list.  itemI is a reference to an item in the list (basically a pointer, if you know C). the contents of itemI to itemI as alias line first converts the value of itemI to alias format, then set the thing itemI points to (the actual item in the list) to that new value.
    What comes out the far end is a list of aliases understandable by other parts of the script.

  • Locking files and folders

    I want to lock a few files and folders so they can't be opened without having to enter a password first. Any help would be greatly appreciated....
    Thanks,
    John

    1. Open Applications -> Utilities -> Disk Utility
    2. Go to New menu -> select new below the New Window -> Disk Image from Folder
    3. Select the folder in question you wish to password protect
    4. Below the window where you select the folder, change Compressed to Read/Write, unless you want it Read only in which case you would select Read Only
    5. Encryption select AES-128 (recommended)
    That will let you password protect the folder.

  • Read a file and write in different format

    Hi, I am new to Java, Please help me to do this.
    Just give me a hint as to what I should use to solve the problem below.
    Please suggest me what to do in Java.
    1. Read from a text file that has name in the following format:
    FirstName LastName
    Carol Bender
    Peter Milton
    Harish M. Mondol
    karen J. Funny
    2. Convert that file in the following format:
    Lastname, FirstName
    Bender, Carol
    Milton, Peter
    Mondol, Harish M.
    Program should read the <input-file-name> and
    <output-file-name> from the command promt as a parameter.

    What part are you having trouble with?
    Reading/writing files? http://java.sun.com/docs/books/tutorial/essential/io/Converting after reading? I'd suggest regex. http://java.sun.com/docs/books/tutorial/extra/regex/
    http://www.javaregex.com/I'd suggest using BufferedReader to read a line at a time. Once you've read that line use either String.replaceAll or java.util.regex.Matcher.replaceAll to replace A B with B, A

  • Advanced permission for files and folders

    Advanced permission for files and folders
    Hi,
    Just wanted to raise a quick query on setting a unique NTFS Security permission.
    My requirement
    A shared folder with the below listed access for users
    A group of users should be able to create, read, rename files and folders inside a shared folder.
    The group of users should not have the right to delete any folder or file from the shared folder.
    This is what I have tried. 
    Gave modify permission to the Security group.
    On Advanced permissions, denied delete subfolders and file & delete permission.
    The effective permission for a user who is member of the security group over a file inside the shared folder is as shown.
    https://onedrive.live.com/redir?resid=835A81FDD1D9D9FC!109&authkey=!AGQFP11QTFaLHQM&v=3&ithint=photo%2cpng
    But while trying to rename or modify the file, getting the below error message.
    https://onedrive.live.com/redir?resid=835A81FDD1D9D9FC%21110
    Any help to achieve my requirement would be really appreciated.
    Thanks,
    JD

    Hi JD,
    Removing delete permission from the user or group brings a limitation that the user will not be able to rename the folder. This is because of the reason that the "rename" operation is also included within the "Delete" permission.
    Thus if you want to prevent user from deleting the shared file, it's also not allowed to rename.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Files and folders moved to NAS become read only.

    I just got an Iomega NAS. When I move files and folders to it from my Macbook, they become read only when they get there. Files from my girlfriend's PC stay read/write when they are moved to the NAS.
    I first noticed this with iTunes. I changed the location of my iTunes folder to be on the NAS and I let iTunes copy the music itself. Now, I can add music by new artists, but if I try to add an artist that I already have a folder for, it won't let me because the folder is read only. Also, I can't change any of the info for any files in iTunes.
    I'm not sure if this has anything to do with it, but it looks like all of the files and folders on my Mac are set up so that only I can see them. When I click "get info" on any file on the computer, it shows:
    me : read/write
    staff: read only
    everyone: read only

    When I open a finder window, I see two icons for the NAS in the "shared" section. The first one is:
    hmnhd-ti2mkg
    When I click "get info" it shows "Kind: PC Server" and there is no mention of permissions in the "get info" box.
    The second one is:
    hmnhd-TI2MKG.local
    When I click "get info" it shows "Kind: Server" and there is no mention of permissions in the "get info" box.
    Clicking on either one of these icons lets me browse through the exact same shares and folders. There is no difference between going in to one or the other. They both have the same permissions on all folders, as well.
    "Jacob's iTunes Music" is a share on the NAS. All of my read only files (that I want to change to read/write) are already in this share.
    Clicking "get info" on any of the shares shows them as "Kind: Sharepoint" with no mention of permissions.
    I think I'm going to try to have iTunes copy all the files to my computer, change the permissions, then have it copy them back to the NAS. Is there a way to change permissions of folders, subfolders, and files without having to click "get info" on each and every one?

  • Files and folders becoming read-only

    Lots of my files and folders have become read-only after
    downloading Eclipse (I have used the Europa version as I needed to
    also download CFEclipse as well to program in ColdFusion) and Adobe
    ColdFusion. When you right-click and go to properties, the
    read-only button is highlighted, so I have clicked this off, but it
    reappears when you right-click and look at it again.
    Does anybody know what has caused this and how I can fix
    this?

    Hi,
    After opening your eclipse,
    Hit alt+shift+w and click "Navigator"
    and then select your project folder -> right click it,
    Go to properties and turn off read only.

  • Help with a fcpx library that is locked "could not be opened. Read-only file system"

    Hi all,
    I recently moved all my fcpx projects/events to a new Harddrive - I thought I did this correctly by copying/duplicating all projects/events from within FCPX.
    When I last used FCPX all the projects/events were there - no issues.  Also, when I look at package contents - everything is still there in terms of events and file sizes.  
    All the library files are on an external hard drive, on an encrypted disk image.  Now a week later I have tried to open FCPX and I get the following error
    "The document “MND_Z_FCPX” could not be opened. Read-only file system" and nothing will open.
    Have checked permissions - these all seem in order.  OSX is10.9.5 
    Any suggestions as to what might be the issue? 
    Thanks in advance.
    R

    the permissions themselves look ok - they have my two computer profiles as read/write.   I also note that on some occasions the library has opened in my other Computer profile, but not in the one that I want it to open.
    So I think you're right, there is something with permissions happening here.  I keep a work and personal computer profile.
    Don't know how it happened - but the volume is definitely Read Only - even though I've created a Read/Write permissions for it

  • I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work. Help?

    I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work.
    ^^ that's the main problem. Here's the full history.
    I bought a new 13" i5 MBP, early 2011 edition. I had an old white Macbook 2.14 ghz core2duo on Snow Leopard. I attempted to port over my time machine backup, but encountered problems in that my User was inaccessible from the new computer after the import finished, and I had to go in and change the root password, etc, and for some reason or another, I couldn't install any programs at all from that administrator's account. By "couldn't" I mean I could install them, but upon installation they would never boot. So, I took it to the apple store and did a clean install from the most up to date Lion OSX. Then, I created a brand new admin account, instead of trying to import the old one, and things seemed great. Then, I just imported my old files from the TM backup, but not any system settings, permissions, or user data. Just my Docs, pics, vids, apps, and itunes stuff.
    Here's where things get weird again. I imported this stuff under the name "old", but all of these folders have a red negative sign on them, marking them as restricted. So, from my main admin account, I cannot even peruse these folders. Since I didn't import user data, I can't sign in to the "old" account to change permissions. I already tried to change the permissions from system preferences, but that didn't change anything. And now, for whatever reason, of all the apps that were imported then, MS Office is the only set of apps that does not work. When I click on it, it just says there was a problem and asks if I'd like to send a report to apple. I tried reinstalling it to no avail. I'm an English student, so i really need access to Word. Can anyone help? The Apple store is a major detour for me and would like to fix this issue myself.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • Cannot print "working with files and folders htm

    When I try to print "Working with files-and-folders" from a Google search, it only prints part of it. I have changed my destination folder to no avail. Thank you or any help, Jack Menendez

    What's the best method for moving all my nonsystem related stuff over to this new driveIan has provided you with the best solution, SuperDuper.
    But if you have a 250 GB external, you really ought to clone your entire system,(only about 3 GB) so you have a backup.
    I keep mine with a complete clone of my internal, that way it is easy to boot from the external and run utilities like Disk Utility, TechToolPro, DiskWarrior, etc. on the internal and vice versa.
    If you run into a problem with say Preferences and don't know which one is the troublemaker, just trash the whole pref folder and use the good one from the clone. Font problem, same deal. And, if diaster ever strikes, you can just boot up from your external and keep right on working - fix the internal when you have time.
    That's my 2 cents anyway
    -mj
    [email protected]

  • HT1923 This article contains the only thing that worked for me.  I also had to sign out of iCloud and uninstall it.  Then I had to delete all files and folders from all of those applications that were under Program Files, Program Files x86, and Users.

    This article contains the only thing that worked for me.  I also had to sign out of iCloud and uninstall it.  Then I had to delete all files and folders from all of those applications that were under Program Files, Program Files x86, Program Data and Users.  My iPhone 4 will now sync with iTunes both in its USB-connected  mini dock and over Wi-Fi.  It's unfortunate (negligent programming on the part of Apple?) that the upgrade to iTunes 11 did not remove all of those files as part of the upgrade process. 

    I am having the same issue....Same address for years - same as USPS - I tried 5 times (3 macs and 2 iPhones) and now i have 5 CHARGES for 1.00 each on my credit card. I took the credit card info off so they don't charge me anymore. How can they charge me yet still not allow me to download free updates and say I have an invalid address? I'm sure I will spend weeks or months trying to get a credit out of these incompetent idiots.

  • How can I get iTUNES library to display renamed files and folders (renamed with Windows Explorer)?

    How can I get iTunes library to display the new names and organisation of tracks and albums (ie files and folders) that I have renamed and reorganised (using Windows Explorer) having previously imported them using iTunes?
    (Even when I relocate "lost" tracks in iTunes (using the drop down menu facility to view in Windows explorer), although iTunes will then play the track, and knows where to find it, it refuses to display the track with its correct (new) name, or show it the correct (new) album.  That means I have lots of things called "Untitled" and "Track 01" etc, all of which have actually been renamed, but iTunes does not seem to have the capability to recognise the changes and update its library listing.  Another example - a Tchaikovsky CD with 3 major works in 13 tracks insists on displaying in iTunes as 13 tracks in one album, despite the fact that I have reorganised the tracks into 3 albums - two being Swan Lake and The Nutcracker - and renamed the individual tracks to a more useable format.)

    Thanks for your replies ckuan
    I agree with Tgod that your first solution does not work.  It appears unpredictable whether the old or new file names are listed when you drag the folders into iTunes from Windows Explorer.  The folder structure is completely missing.  I reckon if you have to muck around spending days/weeks/months finding out how to fix links to a secret meta-file (obviously designed by some deep-cover microsoft worm working in the Apple!), then it's pretty obvious that almost any alternate way of doing this would be better.   Bye bye iTunes!!
    Incidentally, I tried several other things that (if the software was designed intuitively) should work, but give disastrous results:
    1) when deleting the library listing in iTunes, it gives you two options - one is to remove the listings to the Recycler.  Be aware that IF you select that option, it removes not only your library listing, but also your ACTUAL MUSIC FILES to the Recycler.  Moreover, it does NOT remove the insidious secret meta-file that is what apparently keeps rewriting old names over your carefully renamed file names, and keeps totally ignoring your carefully designed folder (album) structure.  OK - not a complete disaster, as I realised and went hunting through the chaos in the Recycler to recover all my files.  No thanks to the genius who designed this brilliant feature!
    2) after deleting the library listing in iTunes, I attempted to import just the folders that I wanted.  iTunes refused to allow me to do that, and proceeded to try to import every frigging music file it could find on my whole hard drive, in apparently random fashion into the library.  Whoever thought up that doozy either never ever tried to use or market test it, or has modified their mind rather too many times with artificial substances so their brain is like muesli chop suey.
    3) oh why go on, it's too depressing ...

Maybe you are looking for

  • Update IPad 2 to IOS 5.1?

    Would like to Update my version 4.3.4 (8K21) on IPAD 2 to IOS 5.1. The Info I have found say to go to settings / general/ software update, but software Update does not show. How Can I update ?

  • How to check and delete the change logs for DSO

    Hello All, I have build a process chain that will delete the change logs for DSO prior to 7 days but when i executed it, the number of entries are still the same within DSO. Then i tried deleting directly from "Environment" menu from DSO maintainance

  • Group Policy being lost after 2 -3 local logins

    I have Netware 6 with Zen 3.2 and I have a GP that is deployed for setting the machines to a SUS server. Both Windows 2k and XP work fine when on the network, but what I've found is that if you take a laptop home and reboot it a couple of times the p

  • Integrating Java and JavaFX..?

    Hi I am a new bee to JavaFX. I have a Java program which connects to the MySql Databas and fetches the data and prints the data, and also I have written a Java FX program for my GUI. Is there any way for me to integrate these two program so that the

  • ITunes won't back up my iPod

    For a long time now iTunes has been acting strangely. Whenever I plug in my iPod, it appears in iTunes but it's grayed-out and it has a spinning symbol next to it. After a little while the message "iTunes was unable to load data class information fro