You can assign repository permissions by entering a digit when you use the -p option.
Enter one number for each set of permissions. Each permission is associated with a number. Designate 4 for read permission, 2 for write permission, and 1 for execute permission. To assign permissions, you enter 4, 2, 1, or the sum of any of those numbers.
For example, if you want to assign default permissions, use the following command syntax:
This gives the folder owner read, write, and execute permissions (7 = 4+2+1). The owner’s group has read and write permissions (6 = 4+2). All others have read permission.
The command returns “createfolder successfully completed” or returns “createfolder failed” message. The creation might fail for the following reasons:
The folder already exists.
The owner does not exist or does not belong to the group.
The read, write, and execute permissions are always granted to the folder owner by default, and the group's default permission is that they will be granted permission from the third correspondents.