Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 12
  1. #1
    michaelsanford is offline Translator, Web Developer
    Join Date
    Oct 2002
    Location
    Ottawa/Montréal
    Posts
    2,280
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Even root can't delete this file...

    I was doing a ditto to copy my ~/ to an external volume as a backup, and it got to the following file and stopped, and only ended up copying about half of my user folder, and none of my ~/Movies ~/Music (which are my two most iportant!)

    So I decided to clean up the backup folder to start afresh, and got this (after trying sudo):
    Code:
    [localhost:hermes/_gwailo/documents] root# rm *
    override rw-r--r--  gwailo/staff for Grocery List? yes
    rm: Grocery List: Operation not permitted
    I originally issued "rm -r _gwailo" which worked for every file except this one, which gave me the same override prompt.

    Extra: hermes is a symbolic link to /Volumes/Hermes which is why it looks like a relative path from ~/.

    Hello what's this then: it doesn't preface my folder name with an underscore in the override prompt (which it should). Is that the problem? I don't see why it would be sice I am IN that folder, and not referencing it from above...?

    WTH?!

  2. #2
    UtaTr3y is offline Registered User
    Join Date
    Nov 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need to change the permissions of the file... root only means that you can delete/edit unprotected files... The current file is read only for root and user... only the files within are read/write... These are probably folders that Mac OS X needs to be in one place...

    Try man rm, there is a command to overide permissions, just make sure you understand what it will be doing as you can delete EVERYTHING on the computer using that command and a simple variable...

  3. #3
    cbaron is offline 110001001011100101011
    Join Date
    Nov 2000
    Location
    Grenoble, France
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Even root can't delete this file...

    You may be a victim of the privilege issue that appeared with 10.1.5 update.

    This problem is well known on Apple's knowledge base, article 106726.

    Try to use the "Repair Privileges" utility provided from this page, then remove your file again, I can't help you more.

  4. #4
    anarchie is offline NSCoder
    Join Date
    Oct 2002
    Posts
    198
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or you could use filesystem software that couldn't care less about owners/perms, like OS 9's. Of course, restarting is someting I only do in the most dire circumstances.

  5. #5
    michaelsanford is offline Translator, Web Developer
    Join Date
    Oct 2002
    Location
    Ottawa/Montréal
    Posts
    2,280
    Thanks
    0
    Thanked 5 Times in 5 Posts
    cbaron: I don't understand what printer privileges have to do with this problem but thanks anyway...

    UtaTr3y: nice try, but no; root has access to everything, hence the monacre "super-user". How do you see that it's read-only for root and user from the privs line anyway, which says it's 'rw' for the user (owner)?

    I think the rm flag you're thinking of is "-f", but all that does it prevent the override prompt from appearing (i.e., defauly to y), so it fails anyway

    -rw-r--r-- 1 gwailo staff 25939 Nov 23 18:13 Grocery List

    It can't be a regular privileges issue because as I mentioned, I tried deleting the file with rm from my user account, who OWNS the file, and it didn't work.

    Thanks anyways guys!!

  6. #6
    michaelsanford is offline Translator, Web Developer
    Join Date
    Oct 2002
    Location
    Ottawa/Montréal
    Posts
    2,280
    Thanks
    0
    Thanked 5 Times in 5 Posts
    AHA! I got it....

    It was an Apple HFS+ filesystem flag error, which corrupted the files permissions (I'm not talking about the linux permission here).

    Fixed it with sudo chflags -R nouchg *

    I asked a friend about it, who deftly coded the solution; thanks!

  7. #7
    UtaTr3y is offline Registered User
    Join Date
    Nov 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    UtaTr3y: nice try, but no; root has access to everything, hence the monacre "super-user". How do you see that it's read-only for root and user from the privs line anyway, which says it's 'rw' for the user (owner)?
    Try reading through some of your man pages, it states what they all mean...

    The middle 3 values (r--, or rw-) define roots permissions... the end 3 define current users permissions. The first 3 digits define OS permissions. If the first 3 are set to r-- then chances are its a BIOS file...

    Like I said though, check your man pages to make sure, I could be wrong, but am 90% sure - as a Linux user - that I am correct...

  8. #8
    anarchie is offline NSCoder
    Join Date
    Oct 2002
    Posts
    198
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by UtaTr3y

    The middle 3 values (r--, or rw-) define roots permissions... the end 3 define current users permissions. The first 3 digits define OS permissions. If the first 3 are set to r-- then chances are its a BIOS file...

    Like I said though, check your man pages to make sure, I could be wrong, but am 90% sure - as a Linux user - that I am correct...
    You, sir, are quite wrong. I beg of you, please take your own advice and check your man pages and verify your own information before asking others to do so for you.

    The first three permission characters describe the file's owner's permissions. The second three describe the permissions for any user in the file's owning group. The last three describe the permissions for any user not fitting the above.

    Michael: Please, they are unix permissions. Both Mac OS X and Linux are derived from Unix, but OS X is not Linux.

 

 
Page 1 of 2 12 LastLast

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. Odd Stuff in my '~/System/Library/StartupItems' folder –*please help
    By eric halfabee in forum Mac OS X System & Mac Software
    Replies: 10
    Last Post: May 12th, 2002, 04:29 PM
  3. Apache 1.3.20, garbled apple_hfs_module
    By jiblet in forum Mac OS X System & Mac Software
    Replies: 23
    Last Post: September 21st, 2001, 03:26 PM
  4. Disk image mount problem
    By aufreak in forum Mac OS X System & Mac Software
    Replies: 13
    Last Post: May 10th, 2001, 06:52 PM
  5. HORIBLE EVIL BUG, Wrecks computer
    By bfc in forum Mac OS X System & Mac Software
    Replies: 12
    Last Post: October 22nd, 2000, 02:52 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
  •