Cocktail utility and .DS_Store file

I recently installed the trial version of Cocktail based on a suggestion from a reply on an earlier post. After installing, running and restarting there is a new file - .DS_Store - that appears on the desktop. I delete the file and it reappears. The contents is as follows (with Safari running):
+

Hi
The fact that .DS_Store has a . at the beginning means it should be invisible. In Cocktail, you have an option to show invisible files IIRC, turn that off & it should disappear again. It will get recreated as it is a necessary file, read about it at http://en.wikipedia.org/wiki/.DS_Store
Steve

Similar Messages

  • Strip resource forks and .DS_Store files from folder

    I'm transferring stuff from my Mac to a Windows machine using a FAT32 formatted keydrive, and want to eliminate the various dot files from folders before I copy them to the Windows box. I had tried using a Terminal command, which was tedious and at one point I mistyped something and managed to nuke one of the folders on the drive. After a search, I found this script at MacOSXHints:
    on run
    display dialog "Drag a removable disk icon here to have it cleaned and ejected"
    end run
    on open selectedItem
    -- get a text version of the volume name and remove the trailing colon :
    set volumeName to selectedItem as string
    set volumeName to characters 1 thru (the (length of volumeName) - 1) of volumeName as string
    if (list disks) contains volumeName then
    do shell script "find '/Volumes/" & volumeName & "' -name '.DS_Store' -exec rm '{}' \\;"
    do shell script "find '/Volumes/" & volumeName & "' -name '._*' -exec rm '{}' \\;"
    try
    do shell script "rm -rd '/Volumes/" & volumeName & "/.Trashes'"
    do shell script "rm -rd '/Volumes/" & volumeName & "/.TemporaryItems'"
    end try
    try
    tell application "Finder" to eject disk volumeName
    end try
    end if
    end open
    It worked great, but took a bit of time to run. I no longer need to clean the whole drive again, just specific folders I add to the drive now. Unfortunately I don't actually know how to write Applescript, I can just sometimes adapt an existing script to my needs, but this adaptation is beyond my meagre abilities. Last night I was copying a couple of folders to the drive, then using the Terminal "find execute remove" command to get rid of the dot files after the fact. I would like to have an Applescript droplet, so that I drop the folder onto it and the resource forks are stripped off and the .DS_Store files are removed before I copy the folder to the key drive.
    Any help appreciated!
    Francine
    Francine
    Schwieder

    Make a duplicate of the folder you want to transfer on your hard disk, and then run the following on the duplicate:
    on open droppedItems
    repeat with anItem in droppedItems
    if (folder of (info for anItem)) is false then
    display dialog (anItem as string) & " was not proccessed." & return & return & "Folders only please"
    else
    do shell script "find " & quoted form of POSIX path of anItem & " -name \".DS_Store\" -exec rm '{}' \\;"
    do shell script "find " & quoted form of POSIX path of anItem & " -name \"._*\" -exec rm '{}' \\;"
    do shell script "ditto --norsrc " & quoted form of POSIX path of anItem & " '/Volumes/volumename/pathname/'"
    end if
    end repeat
    end open
    The second do shell script line may not be needed in this variation.
    (21517)

  • Home Directory Synchronisation and "DS_Store" files

    I have five clients on Tiger connected to a Tiger server. All clients are 10.4.8.
    Initially I turned Home Synchronising on, but since turned it off, realising I don't really need it. One of the clients, with the biggest profile, still keeps synchronising files. They often get the following message in relation to "DS_Store" files:
    You do not have permission to synchronize this file. You can check
    your permissions in the Info window in the Finder
    Name: .DS_Store
    Size: 6.15 KB
    Modified: 09/02/2007 10:09 AM
    Location: Documents/Work - laptop/office/folders/.DS_Store
    My questions:
    1. As I haven't apparently turned off Home Sync'ing (via the Workgroup application), what else can I check?
    2. What does a DS_Store file do?
    3. Will it kill something if I delete all the DS_Store files I can find, so they no longer synchronise?
    4. Alternatively, how can I enable DS_Store files to be replicated?
    Thanks,
    Sam

    A .DS_Store file is an invisible what controls what you see in every folder/directory. The most imoportant one is the one which controls the Desktop folder in your home directory. The Desktop folder is always open—it's what you see on your desktop when the Finder is running. If you delete the file, for any folder, including the Desktop, it'll be recreated as soon as you reopen the folder or relaunch the Finder, in the case of the Desktop .DS_Store file.
    I can't answer your query WRT tp synchronization or servers. You might post the problem to the Servers forum.

  • Color synch utility and pdf files

    Today, my pdf files have opened in Color Synch Utility rather than in Preview. When I magnify the view to make reading easier it becomes pixellated and out of focus. Also, the side drawer showing pages of the pdf file isn't available.
    I dumped some stuff in Trash yesterday and wonder if I've accidentally created this dysfunctional behavior, but don't know how and had already emptied the Trash. I've tried restoring files and applications using Time Machine from a couple of days ago when things were working normally but without success.
    Any ideas?
    Thanks,
    Mike

    Hi Bev,
    Not quite sure what would cause this ruling out corruption of size file. 
    If still having troubles porting the particular file I would recommend logging a case directly to support and attaching the file so we can test further.
    Admin -> help&support
    Kind regards,
    -Sidney

  • Making  ".DS_Store" and ".localized" Files Invisible With Cocktail

    I got Cocktail and I know that these files shouldn't be deleted
    How exactly would I go about making these files invisible with cocktail? All I see is delete or prevent ".ds_store files". And what about these ".localize" files? does it take care of that along with ds store?

    Any files that have names that begin with a "." are supposed to be invisible on your Mac.
    You might have used Cocktail and gone to the "Interface" button and clicked on the "Show invisible Items" box. If so uncheck the box. You might have to log out and then back in to see a difference.
    A .DS_Store file holds the information which controls the way a folder will be opened; i.e., the shape and size of the window, the position of the window on the desktop and whether file, folder or icon view has been selected. If you were to delete the .DS_Store the folder would revert to the system default next time it is opened and a new blank .DS_Store would appear (invisibly).
    The only problem with .DS_Store files is that they confuse Windows users because they do show up on network shared drives, and flash drives that are formatted with Fat32.
    They actually help the user keep individual folders working in a layout they choose and some people get upset when all their hard work is destroyed by having the system revert the View settings to the system default.
    I don't know much about the .localized files. I suspect they are used by the system help files and other settings to know what language and measurements to use in system dialogs and messages. I could be wrong here, but they are still supposed to be invisible on a Mac.

  • NTFS-3G - Help setting up, and getting rid of .DS_Store files

    Hello All,
    I'm new to the Mac world so please bare with me. I installed this last night using a video from CNET on youtube, but the final command line they gave didn't work. I eventually mounted the disk and it seemed to work, however there were strange files and folders on the disk when I went back into Vista.
    So I reinstalled everything and now I'm ready to try it again.
    Could someone please give me a step by step way (step 1. Install Mac Fuse) of setting up Ntfs-3g and any command lines or anything I would need to use. Call me lame, but I don't understand the instructions as I keep finding different ones everywhere I look.
    Secondly, could someone explain why I keep getting .DS_Store files and similar ones like that when I navigate into Windows? I realize these must be Mac system/meta files, but they're clogging up everything. Is there a way to either have them not be written, or be hidden/cleaned by vista.
    Thanks for your help!
    Jeff

    actually, what would work awesome as well is a single directory where I could just put the files in that I need or want to modify....that would be another cool option if anyone knows how.

  • Find and delete .DS_Store files

    I have a 2008 server where some mac clients connect. They create .DS_Store, ._.TemporaryItems and other files that starts with "._".
    I want to find them and delete them every night.
    What kind of script can I run.
    Thank you so much for your help.

    I know this is an old thread, I just came across this problem myself when I was moving my files back to PC from Mac.  Here is the approach I took:
    # Check to see what files are in the directory, you may want to save this to a variable or CS
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Select
    Name, Directory,
    Length
    # See how many files exist that meet the criteria
    ls
    -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Measure-Object
    # Use the -Force switch to get past the permissions restrictions on the hidden files
    ls
    -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Remove-Item
    -Force
    # Rinse and repeat for the .DS Store files
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like ".DS*"}
    | Measure-Object
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like ".DS*"}
    | Remove-Item
    -Force

  • When opening the Coloursync utility and pressing the verify button, I received an error message stating that the Tag 'cprt':Text tag has an incorrect length which could not be fixed as the file is locked. Does anyone know how to rectify this?

    When opening the Coloursync utility and pressing the verify button, I received an error message (copy below) stating that the Tag 'cprt':Text tag has an incorrect length which could not be fixed as the file is locked. Does anyone know how to rectify this?
    Checking 25 profiles...
    /Library/ColorSync/Profiles/Displays/iMac-00000610-0000-9C6C-0000-000004271B00.i cc
       Tag 'cprt': Text tag has an incorrect length.
       The file is locked. Could not be fixed.

    Hi guys,
    I followed the steps to unlock the .icc file in the "getinfo" screen then went on clicking repair in colorsync utility.
    This is the message i got:
    Searching for profiles...
    Checking 17 profiles...
    /Library/ColorSync/Profiles/Displays/Color LCD-00000610-0000-9CF3-0000-000004273CC0.icc
       Tag 'cprt': Text tag has an incorrect length. Fixed.
    Repair done - 1 profiles fixed.
    However, when i hit verify again it shows up like this:
    Searching for profiles...
    Checking 17 profiles...
    /Library/ColorSync/Profiles/Displays/Color LCD-00000610-0000-9CF3-0000-000004273CC0.icc
       Tag 'cprt': Text tag has an incorrect length.
    Verify done - found 1 bad profile.
    ... and it keeps like this sine die.
    when i open the .icc file it shows up like this:
    3     'cprt'     'text'     35     Copyright ASCII Text String
    New to mac so I really don't know what to do.
    I didn't get this message so far. What i did before getting this message was to open a jpeg file. I wanted to edit it so when i did right click on the file i went to open with, and colorsync came as an option; so i chose it.
    Then this message started comming up.
    Is there anything i can do?
    Thabks for the support.

  • I start my macbook air up and a file comes up with a question mark. When I go to Disk Utility I go to update things or erase everything and my disks don't show up or anything. Anyone know what to do?

    I start my macbook air up and a file comes up with a question mark. When I go to Disk Utility I go to update things or erase everything and my disks don't show up or anything. Anyone know what to do?

    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by:
    Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    Boot drive's directory has been corrupted - Repair with Disk Utility.
    Critical system files are damaged or deleted - Reinstall OS X.
    The disk drive is physically non-functional - Replace the hard drive.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD:
    Boot From The Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • What are .ds_store files and can they be removed?

    What are .ds_store files and can they be removed?

    Probably the easiest way is to use Onyx.
    If you show invisibles you can see ds_store in each folder.
    Open Terminal.app (it's in /Applications/Utilities) and copy & paste this command at the prompt...
    sudo chflags nohidden
    Press return.
    The reverse is
    sudo chflags hidden

  • Disk Utility crashes and dmg files won't mount

    My girlfriend's Powerbook has been acting up for a while now, and we still can't seem to get it working properly.
    One day, her Adobe programs just stopped working. Tried several things, but nothing worked and she ended up reinstalling OSX. That fixed the problem, but then she noticed she could no longer open DMG files. Accordingly, she tried to run Disk Utility but then found that it would always crash when trying to open.
    She ran Disk Utility from the install disc, but nothing turned up. She also tried looking up several methods of fixing the DMG problem (deleting various files), but nothing's worked.
    If I remember correctly, she also tried using the 10.3.9 combo updater some time ago, but that didn't help. We're actually not totally sure about that, so we're trying to reinstall the 10.3.9 combo updater, except for the fact that Apple has only made the file available as a DMG (which she obviously can't open).
    So can anyone please help us get Disk Utility to stop crashing, and get those DMG files to open/mount? I have the crash logs but they're huge, so I'm not so sure if I should post them. Thanks everyone!
    PS. I can open DMG files for her using MagicISO (I'm on a PC), but it's a bit of a pain transferring those larger files to her.
    Powerbook   Mac OS X (10.3.9)  

    What files did you try deleting? If you don't know what a file does or why you're messing around with it, you shouldn't; that's just asking for trouble.
    Let's assume for the moment that you have a corrupted preferences file. To find out, go to Users/Library/Preferences and locate the com.apple.DiskUtility.plist file and drag it to the Desktop. Now relaunch Disk Utility and see if the problem continues. If not, then use Disk Utility to Repair Permissions, and then you can Trash the file on your Desktop.
    You should also use your OS X install disc to boot the system and use Disk Utility to Repair Disk, to see if there are any problems. If it reports any errors that it can fix, keep running it until no more are reported.
    If there's an error that it cannot fix, stop using your system immediately and make a backup of everything; then get a disk utility such as DiskWarrior to see if it can fix your drive. If your drive cannot be repaired, you will need to replace the internal drive and restore from your backup (if you have one).
    Hope this helps,
    Mulder
    If my answer helped solve your problem, please consider awarding some points. Why Reward Points?
    iMac G4 700Mhz   Mac OS X (10.3.9)  

  • Suddenly my macbook pro 10.9.1 is slow and has this message in disc utility: Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.

    suddenly my macbook pro 10.9.1 is slow and has this message in disc utility: Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.

    See this Apple Discussion https://discussions.apple.com/thread/5785712

  • Disk Utility and other Utilities GONE from Utilitis Folder

    On my PowerBook G4 I noticed that some icons don't look right and an installer disk (for iLife 06) won't run....So I remember it's been a long time since I've run permimssions repair. I go the DiskUtility Folder and almost everything is gone The only thing in there is Bluetooth File Exchange and one or two other items. There should be about 30 apps in there...! What happened? How can I get Disk Utility back ? Is it possible all these files are actually there but the Mac's directly has just lost them? Perhaps running permissions repair would fix it -- but I can't find it!

    Have you tried booting while holding down the shift key? This will force it to boot in to Safe Mode which will force the system to check the disk and to check the fonts. If you can boot this way it may give you some clues as to what is happening. My guess is since you did an archive and install which keeps all of your networks settings, preferences, and cache files intact that the issue is really with one or more of them.
    As the problem seems to be caused by Safari and/or AOL I would start by trashing all t he preference files for both applications. In fact it may be a good idea to completely reset Safari which you do by going to the Safari menu and selecting "reset Safari" When you do this it will wipe out all the cache files and other files and give you a kind of new Safari.
    These solutions I am proposing a fairly radical. You may lose all your bookmarks, and all or the preferences you had originally set but it may solve the issue.
    Another thing you could try is to get a program like Tiger Cache Cleaner or Cocktail or YASU and use it to clean all your cache files.
    If doing things like this still don't stop Safari and AOL from causing problems then I think you may have to reformat your drive and reinstall everything from scratch. Make sure you have backups of your personal files.
    Good Luck!!

  • System crash after deleting ".DS_Store" files?

    My Finder view options were a bit messed up, so I decided to follow some online advice and delete all ".DS_Store" files on my MBP. I followed instructions on osxdaily.com. Specifically, I typed the following command into Terminal:
    sudo find / -name ".DS_Store" -depth -exec rm {} \;
    After the command finished running I tried to restart the computer but it would just show the grey screen with the Apple logo and the progress indicator and not start up properly. I was able to run Disk Utility and verified the HDD. No errors were displayed. I chose "repair disk" anyway, but the computer still would not start up. Entering safe boot mode didn't work either. In the end, I chose to reinstall OSX 10.8 from the Internet. I didn't want to reinstall a backup from Time Machine because there were some files I hadn't backed up yet.
    Fortunately my MBP seems to be working properly again, but what's weird is that I had to reinstall every single application. The application files were still present in the application folder but their icons were greyed out and they wouldn't launch.
    Does anybody have any idea why this happened? Is it that dangerous to delete ".DS_Store" files? Should I use a different command? I would still like to get rid of those files so I can redefine a default view for all folders.
    And is it normal that if I reinstall OSX I need to reinstall all applications as well?

    Letting something arbitrarily delete every .DS_Store file on your computer invites bad things to happen.
    Running rm is dangerous as is--letting it run rough-shod all over your computer is infinitely dangerous.
    I don't know why there is a .DS_Store file  inside an app package, but removing it "damages" the App just as if some malicious code might write malware into the package. So, it is no mystery why they do not work anymore.
    Deleting specific .DS_Store files in folders is not normally a problem.
    If you have a problem in one folder that doesn't hold its settings, deleting the .DS_Store file is ok.
    Here's how I would do it, though:
    Open the folder and Cmd-F.
    If you don't already, use the Other... option in the Criteria popup to add the System Files and Visibility options to the criteria menu (check the box to include in men).
    Set the Search criteria to System Files are included and Visibility is invisible.
    Type ".DS_Store" in the search field. You should see the .DS_Store file for that folder at the top of the list, and then all the others in the subfolders.
    You can delete it from there.

  • The system doesn´t let me change the dock and .jar files

    Dear professionals,
    since a couple of days I come across with a weird problem:
    I am logged in as admin but the system doesn`t perform several modifications:
    such as:
    if I remove a broken link from the dock (grey questionmark) and replace it with a new link to the new app the next session everything is unchanged and the questionmark is back.
    if I want firefox not to play quicktime and try to change the preferences it flips back immediately
    if I want to open Cocktail to schek something it does not accept me as admin - whereas the systems calls me admin.
    maybe the futile attempt to alter the minecraft.jar has the same reason.
    At many files the file info shows a strange entry at the botten where the sharing/permission are listed: Name is "Laden..." meanig "Loading..." with the dots and as symbol a grey person with tiny questionmark; permission is "read only"
    History:
    Till now I never used a password and logged in automatical as admin
    I upgraded to Lion
    I installed a second account to have a workspace not as admin
    I gave a password to the admin account
    I got nuts with the second account as I couldn´t change the preferences of firefox and delete files and so on
    I gave administration rights to the second account to customize the workspace
    I realized the problems with the admin account - changes where ignored/forgotten by the system w/o warnings
    I deleted the second account as it seemed to cause the trouble
    I repaired the rights in the admin account
    I repaired the HD with HD recovery
    I try to check the system with cocktail but cocktail tells me the password is not sufficient - it opens the app but it refuses any modifications
    I switched to manual login
    System tells me that the keychain.login does not accept the password
    I set the password for keychain also
    keychain first aid tells me the password does not work ?
    I removed the password from admin account
    I removed the password from keychain first aid is happy
    Repair rights does not find any trouble
    Cocktail does not accept me anyway anymore, without password (as i logged in) or the former passwords- it blocks at all.
    And all the other stuff listed at the beginning drives me crazy
    File Info window tells me i have adapted rights- whatever it means, as i am listed with full read/write rights
    now I am stunned.
    I would like to use my Installation disk to repair anything - but as it is not the lion system I am afraid to cause more trouble.
    Does anyone have a clue?
    And sorry for the strange text- english is not my native language
    And, btw, is netinfo manager removed by lion? it does not appear on my volume.
    Thanks for Your help
    Bernhard

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the 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 page that opens.
    Drag or copy – do not type – the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens.
    Select your boot volume 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.

Maybe you are looking for