Do i need Administrator privileges to Monitor files in Mac using FSEvents

I'm trying to get the File System Event notifications in Mac for my Application. When i was googling about FSEvents, noticed Dropbox is also using FSEvents and it's asking for administrator privileges to run "dbfseventsd" process. Do i also need to have Administrator privileges for my Application to monitor changes in a Directory ..?


From apple's Documentation

File System Permissions and File System Events

The most obvious security concern related to file system events is one of privacy. If Bob can see a list of events from changes to Alice's home directory, Bob might see things that Alice does not want him to see. For example, Alice might have a directory name that coincides with the code name of an unreleased Apple product.

To prevent this potential security leak, users do not receive any events unless the user can reach the modified directory through standard file system permissions.

Note: As a side effect, event IDs presented to a file system events client will not necessarily be consecutive even if the user is monitoring all events on all directories beginning at the root. Only applications running as the root user can be guaranteed to receive all events.

链接地址: http://www.djcxy.com/p/25372.html

上一篇: fsevent在后台

下一篇: 我是否需要管理员权限才能使用FSEvents在Mac中监控文件?