I'm trying to predict which files I can delete using unlink().
My understanding so far is that the file must either be writeable to others, or have the same group id or owner id as the executing program.
Are there any other cases? I'm trying to explain how these files are deletable by my program (the program is not running as root nor in the admin group).
drwxrwxr-x 4 root admin 136 Apr 17 23:53 .
drwxrwxr-x 7 root admin 238 Jan 27 11:49 ..
-rwxrwxr-x 1 root admin 560 Jan 27 11:49 info.nib
-rwxrwxr-x 1 root admin 18399 Jan 27 11:49 keyedobjects.nib
Thanks!