Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Locked file on the desktop

Locked file on the desktop
Thread Tools
Tyre MacAdmin
Mac Elite
Join Date: Feb 2002
Status: Offline
Reply With Quote
Dec 12, 2003, 01:46 AM
 
I've got this locked file on my desktop FWX.SIT

I can't throw it away... How do I modify this file so I can throw it away?
     
proton
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Dec 12, 2003, 07:17 AM
 
In the Terminal, run ls -lo ~/Desktop to display the flags on the files on your desktop.

You should see an entry for the file in question that looks something like this:
-rw-r--r-- 1 username staff uchg 0 12 Dec 22:12 foo

In this case, you can remove the uchg flag by typing chflags nouchg ~/Desktop/foo, if the file is owned by another user for some reason, add sudo to the start of the command to execute it as root.

If schg is listed where uchg is shown above, you'll need to remove that flag in single user mode. There are instructions on the various immutable flags available here:
http://osxfaq.com/Tutorials/Learning.../ugp2/page2.ws

- proton
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:29 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,