how to get permission to access files on a hard drive code example Example: how to get permission in create folder and file on hard drive in ubuntu sudo chmod -R a+rwx /path/to/folder