• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unixcommand for locking/unlocking....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unixcommand for locking/unlocking....


  • Subject: Re: Unixcommand for locking/unlocking....
  • From: Adam Wuellner <email@hidden>
  • Date: Wed, 6 Jul 2005 13:32:24 -0500

On 7/6/05, Stefan Eriksson <email@hidden> wrote:
> Anyone knows of a unixcommand to lock/unlock a bunch of folders
> recursivly, like rm -r /Users/Ster...


Lock:
chflags -R uchg /path/to/folder

Unlock (must be file owner or super user):
chflags -R nouchg /path/to/folder

This is, AFAIK, what the little 'Locked' checkbox in the Finder's Info
window does.

man chflags

also some explanation here:
http://www.osxfaq.com/Tutorials/LearningCenter/HowTo/Trash/page2.ws
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Unixcommand for locking/unlocking....
      • From: Stefan Eriksson <email@hidden>
References: 
 >Unixcommand for locking/unlocking.... (From: Stefan Eriksson <email@hidden>)

  • Prev by Date: RE: Unixcommand for locking/unlocking....
  • Next by Date: creating text file under Tiger 10.4.1?
  • Previous by thread: Unixcommand for locking/unlocking....
  • Next by thread: Re: Unixcommand for locking/unlocking....
  • Index(es):
    • Date
    • Thread