Operation not permitted whilst chown ‘ing …

Unfortunately I didnt get my backup done in time and the laptop went down.

anyway I had most of the stuff copied accross but still have some wierdness on new laptop.

I wanted to make sure everything was owned by my user (called admin) so i was trying to

chown -R admin * in my home dir.

I kept getting “Operation not permitted”. My freind Gordon pointed out that the files were locked and to remove the lock i need to do:

sudo chflags -R nouchg <files>

sweet.

Share

2 thoughts on “Operation not permitted whilst chown ‘ing …

  1. I thought this might be my problem but when I do “chflags -R nouchg .” I get Operation Not Permitted!

Comments are closed.