Question: how to mkdir with permissions?
Answer: How to Set Permissions When Making a Directory. The mkdir command by default gives rwx permissions for the current user only. To add read, write, and execute permission for all users, add the -m option with the user 777 when creating a directory. The directory with rwx permissions for all users is highlighted.