Mac commands to create/make UnDeletable and SuperHidden File/Directory

Bash shell questions
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

Mac commands to create/make UnDeletable and SuperHidden File/Directory

Post by MigrationUser »

07 Oct 2011 12:06
Aerrow

Hi,

I need to create an UN-deletable file/Directory in Mac OS using Terminal commands. I used chflags, sudo commands but it doesn't meet my requirement. For your information, in Windows we achieve this concept using attrib, cacls commands.

In Windows,

For Super Hidden concept: attrib (file or directory path) +S +H

For UN-deletable concept: cacls (file or directory path) /e /c /d %username%

Similar than i need Mac commands to achieve the Supper hidden and UN-deletable concept. if it possible kindly send me the details, thanks in advance..!:)

----------------------------

#2 09 Oct 2011 12:06
Simon Sheppard


Look at the chmod ACL options

https://ss64.com/osx/chmod.html

----------------------------

#3 10 Oct 2011 09:06
Aerrow


Thanks for your reply Simon Sheppard. I'm new to Mac platform. I already reviewed this page, but i can't understand, in which of these commands i use to achieve my need.
Post Reply