В Mac OS права доступа к файлам и папкам управляются многоуровневым способом с помощью базового стиля unix (POSIX): owner/group/everyone
и read/write/execute
режимов, а также недавно добавленных списков контроля доступа (ACL) для дополнительного контроля доступа.
Элементами управления POSIX и ACL можно управлять из командной строки с помощью традиционной команды unix chmod
. Например:
Mac:~> sudo chmod -R +a "staff allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" path/to/folder*
Каков полный список всех атрибутов ACL, которые можно установить в Mac OS 10.13 (High Sierra)? Что каждый означает?
Полный список атрибутов ACL доступен на справочных страницах:
man chmod
Если вы предпочитаете приложение с графическим интерфейсом для загрузки и установки справочных страниц, например, ManOpen (бесплатно) или Dash для macOS (несколько долларов США).
Я не буду перечислять всю документацию chmod:
... ACL MANIPULATION OPTIONS ACLs are manipulated using extensions to the symbolic mode grammar. Each file has one ACL, containing an ordered list of entries. Each entry refers to a user or group, and grants or denies a set of permissions. In cases where a user and a group exist with the same name, the user/group name can be prefixed with "user:" or "group:" in order to specify the type of name. If the user or group name contains spaces you can use ':' as the delim- iter between name and permission. The following permissions are applicable to all filesystem objects: delete Delete the item. Deletion may be granted by either this permission on an object or the delete_child right on the containing directory. readattr Read an objects basic attributes. This is implicitly granted if the object can be looked up and not explicitly denied. writeattr Write an object's basic attributes. ...
Мэтт
Мэтт
мвфернли