How to assign a disk partition to user linux code example Example: linux external hard drive chmod sudo chmod ugo+wx /media/username/your_drive