How can I find out if a certain user has access to a certain folder in linux, programaticly?