Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 3 of 3
  1. #1
    JeffZPgh is offline Registered User
    Join Date
    Oct 2001
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    file locking confusion

    I restored a CD backup of some files from my home directory to a new machine. I had a problem with iTunes crashing after doing this, which I traced to the fact that the "iTunes Music Library" file is somehow locked.

    Now here's the confusing part: in Terminal, I verified that the file is owned by my user and that permissions are set correctly (rw for user). Yet I cannot write to the file, nor delete it with "rm", nor move it with "mv" (I get "Operation not permitted" errors). Not even as root!

    So my question is this: what file locking mechanism is being used besides regular Unix-style file permissions, such that I can't do a thing with this file? How can I reset the lock? And how can I prevent being screwed in the future when restoring backups made to CD?

    Jeff

  2. #2
    blb
    blb is offline `'
    Join Date
    Apr 2001
    Location
    CO, USA
    Posts
    651
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OS X also has file flags (man chflags for info) for files. If you do an 'ls -lo' and see 'uchg' you won't be able to do much to the file. Running 'chflags nouchg filename' will clear that.

    Why it was set that way in the first place, I'm not sure.

  3. #3
    JeffZPgh is offline Registered User
    Join Date
    Oct 2001
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow - never heard of chflags, and I've been using various unix flavors for 8 years or so. Thanks for the tip - that fixed the problem!

    Jeff

 

 

Similar Threads

  1. I installed Fink under root and.....
    By Hydroglow in forum Unix & X11
    Replies: 5
    Last Post: November 27th, 2002, 03:57 PM
  2. How to compile stuff
    By fintler in forum Unix & X11
    Replies: 1
    Last Post: August 28th, 2002, 07:57 AM
  3. HOW TO: Install BIND DNS 9.2 with RNDC Controls
    By Dymas in forum Mac OS X System & Mac Software
    Replies: 6
    Last Post: March 16th, 2002, 09:12 PM
  4. "Mac OS ROM" file issues
    By Clarifix in forum Mac Classic System & Software
    Replies: 1
    Last Post: July 20th, 2001, 08:52 AM
  5. vignette client on mac os x
    By erim in forum Software Programming & Web Scripting
    Replies: 8
    Last Post: July 13th, 2001, 01:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •