You can assign repository permissions by entering a digit when you use the -p option.
Enter one number for each set of permissions. 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.
By default, the folder owner is always granted read, write, and execute permissions, and the group is always granted default permissions from the third correspondents. You cannot update the folder owner and group permissions for a shared folder.
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.