Pseudo-code for a path-restricted chown script:
* Check User/Path Mapping (user perm)
* Get/Clean Input
* Get real path (follow symlinks)
? If User && Path OK
* Make chown system call
random($foo) is the occassionally still updated blog of Leonard Lin. My pics are on Flickr, code is on Github. @lhl on Twitter. More »
Pseudo-code for a path-restricted chown script:
* Check User/Path Mapping (user perm)
* Get/Clean Input
* Get real path (follow symlinks)
? If User && Path OK
* Make chown system call