how can i get all the users and type of permissions on a file or folder? is there any command to extract those detail to a file?