Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Deleting locked file on desktop

Greetings-

This is more a software question. I transferred QuickBook files from a PC to my Mac. I can run QB for Mac easily, but the transfer left a locked .qbw file on my desktop. I think this is a QB backup for Windows file. I am trying to delete it but can't because it is locked. I tried to delete from within QB, but can't. It is no big deal, but I would love to get it off my Desktop. Any ideas? I tried to contact Intuit, but they require an Intuit ID which I don't have. Thanks.

Mac Book Pro 2.66

Posted on Nov 7, 2010 7:31 AM

Reply
15 replies

Nov 7, 2010 8:08 AM in response to leroydouglas

I tried this. In sharing and permissions In the list of users am listed as being able to read and write, but no execute. However above the user list is a message that I can only read. I am also not able to unlock it in the "general" section either. Thanks for the idea. I am now contacting an Intuit discussion group to see if they have any ideas. I will post results.

Nov 7, 2010 10:21 AM in response to leroydouglas

It is called SuperDailies.qbw. It is a backup file of a Company from QuickBooks for PC. I transferred the files from a PC hard drive to my old Mac when the PC died. I installed QB 2007 for Mac in order to use the Company file to keep track of my business. The .qbw appeared along with other files when I transferred the data to the Mac. I have tried to open it with QB for Mac, but it cannot open a Windows backup.

Nov 7, 2010 10:34 AM in response to Ed Colman

Ok Ed Colman lets try this:

deleting locked files


1. Open Terminal. It's located in your /Applications/Utilities.

Paste the following command:

*chflags -R nouchg*

Note: Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.


2. Drag the files from the desktop to the Terminal window.

Note: This automatically enters the pathname for file/folder.

3. Press Return. No special text message will be shown indicating that the command was successful.
This should unlock hidden flags in directory and subdirectories /file that you can not get to.

4. Exit to terminate terminal session then quit as normal.

5.Delete rouge file as normal, empty trash or secure empty trash.

Message was edited by: leroydouglas

Nov 7, 2010 11:05 AM in response to leroydouglas

First of all, thank you for your time in trying to solve this. I did as you suggested and got a "permission denied" message after the file name. Tough one. So far no response from the Intuit discussion list. I might have to install Windows XP via Boot Camp, install the QB for Windows (if I can find the disks) and try to do it from there. I'd prefer not to have to go that route as I don't really need Windows on this machine. Thanks again.

Nov 7, 2010 11:27 AM in response to Ed Colman

We can go the next step. It requires switching to single-user mode and then changing the flags as root.

You can get the command sequence example here:

http://hints.macworld.com/article.php?story=20011124145736956

I might suggest you print out for reference (include your rouge file,) when you are booted in single user mode.

Report back, good luck I hope this is helpful if not problem solved.

You can read through this reference as well:
http://discussions.info.apple.com/thread.jspa?threadID=2633470&start=0&tstart=0

Message was edited by: leroydouglas

Nov 7, 2010 11:32 AM in response to leroydouglas

This is as far as I got: I got a heavy Warning message before entering my password. I did and got the following:

Ed-Colmans-MacBook-Pro:~ edcolman$ sudo shutdown now
shutdown: -h, -r, -s, or -k is required
usage: shutdown [-] [-h [-u] [-n] | -r [-n] | -s | -k] time [warning-message ...]
Ed-Colmans-MacBook-Pro:~ edcolman$

Couldn't execute the su command.

Nov 7, 2010 12:17 PM in response to leroydouglas

Thanks again for your patience on a Sunday afternoon. I'll let you know how it goes. It all depends on how brave I am playing with the Terminal commands. If you scroll down to the article you referred me to, there are several comments to the effect that the command string doesn't really work anyway. I might just have to live with this little file. We'll see. Have a great afternoon and thank for your help with my other questions.

Nov 7, 2010 3:50 PM in response to Ed Colman

Here is the solution:


Open Terminal (Application->Utilities->Terminal, then
1) enter "sudo rm -i ",
2) then drag the file into the Terminal window (this is a shortcut to typing the files path),
3) then press enter
4) enter your password
5) if the file is indeed the one you want deleted, then enter "y' (this deletion cannot be undone)

This is from Tony T1 on the Unix discussion.
Worked perfectly. Took 30 seconds. Thanks for all the help.

Dec 29, 2010 1:15 PM in response to leroydouglas

I have a similar problem and have been reading this post for resolution. I have a little 'padlock' on the USB backup drive icon. I must confess that I was fiddling with the permissions for this in *Get Info' panel. Now it won't let me open the device. of course that's where the backup is. Now the get info permissions says each entry has a "custom" privilege. How do I get this restored? I get the Terminal and SU command but I don't want to actually delete a file or format the disk. I'd like to recover as much as I can from the backup drive before doing that. Ideas? thanks and Merry Christmas to all.

Deleting locked file on desktop

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.