Usage: smchmod.(sh/bat) <options> <command options>
  Change subtree or document access permissions.
  
Options for SEPDB connection  

  -?,  --help                # this help.
  -h , --host <host>         # specifies the host name.
			       if missing will use localhost;
  -p , --port <port>         # specifies the port number.
	                       if missing will use 10288;
  -d , --dbname <database>   # specifies SEP database name for your 
                               connection.
			       database name is required;
  -u , --user <username>     # specifies the username for SEPDB connection.
			       if missing will use guest;
  -P , --passwd <password>   # specifies the password for SEPDB connection.
		               if missing will use guest;
  -s , --security <security> # specifies the security type for 
                               SEPDB connection.
			       The secutity type must be   jsse or ptls.
			       If missing the connection is opened without 
			       security;

Command options  
		 
  -R, --recursive            # change permissions in specified subtree 
                               recursively;
  -v, --verbose              # output a diagnostic for every file processed;
  [ugoa][[+-=][rw]][,..]     # is format of a symbolic mode. If you want to 
                               use multiple symbolic operations, then you 
			       can separated by commas.
			         Combination of the letters 'ugoa' controls 
			       which users' access to the document will be 
			       changed  
				 - the user who owns it (u), 
			         - other users in the document's group (g), 
	                         - other users not in the file's group (o), 
			         - all users (a). 
			       If none of these are given, the effect is 'a'.
			         The operator '+' add selected permissions 
			       to the existing permissions for each document; 
			       '-' causes them to be removed; and '=' causes 
			       them to be the only permissions that the each 
			       dococuments has.
			         The letters 'rw' select new permissions for 
			       the affected users  read (r), write (w);
  <subtree>                  # the subtree (and document id), for changes;
													 
Examples 
 The following examples for SEP database connection, using 'localhost', 
port '10288', username 'root' and the <root_password>.
  
  smchmod.sh -u root -P rootPWD -d XMLDB u+rw users/crow/xml/1 
    # add read, write permissions to user for document '1' in subtree 
      'users/crow/xml';
  
  smchmod.sh -u root -P rootPWD -d XMLDB +r-w users/crow 
    # add read and remove write permission to all users for 
      subtree 'users/crow';
  
  smchmod.bat -u root -P rootPWD -R -d XMLDB ug+r users/crow
    # add read permission to user and group for all documents 
      in subtree 'users/crow' recursively;