| Title: | Kit: Note 4229; Please use NOTED::PWDOSWIN5 for V4.x server | 
| Notice: | Kit: Note 4229; Please use NOTED::PWDOSWIN5 for V4.x server | 
| Moderator: | CPEEDY::KENNEDY | 
| Created: | Fri Dec 18 1992 | 
| Last Modified: | Fri Jun 06 1997 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 4319 | 
| Total number of notes: | 18478 | 
    Hi,
    
    I have a DCL command procedure that adds user accounts with a personal
    share. Unfortunatly the personal share does not get the required
    permissions although I give the /permissions option (as below).
    
    	$ NET SHARE JUSER=dev_users1:[JUSER] -
    		/PERSONAL -
    		/PERMISSIONS:RWCXDA -
    		/REMARK:"Joe User personal share"
    If I try to use the NET ACCESS command I get the following error
    
    	$ net access DEV_USERS1:[JUSER] /grant JUSER:r
    
    	NET2222:  The list of permissions for this resource cannot be found.
    	More help may be obtained by typing NET HELPMSG 2222.
    
    
    Is there anything I can do to automate this without having to use ADMIN
    ?
    
    Regards
    Mark
    
    PS : This is an Alpha running VMS V6.2-1H3,	 Pathworks V5.0-D ECO2
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 4225.1 | Change /GRANT to /ADD | VMSNET::P_NUNEZ | Mon Mar 24 1997 12:20 | 33 | |
|     Hi Mark,
    
>    I have a DCL command procedure that adds user accounts with a personal
>    share. Unfortunatly the personal share does not get the required
>    permissions although I give the /permissions option (as below).
>    
>    	$ NET SHARE JUSER=dev_users1:[JUSER] -
>    		/PERSONAL -
>    		/PERMISSIONS:RWCXDA -
    
    I'm not sure what those "permissions" are for (maybe when you're in
    Share-level security?), but they won't give you access (see below).
    
>    If I try to use the NET ACCESS command I get the following error
>    
>    	$ net access DEV_USERS1:[JUSER] /grant JUSER:r
>    
>    	NET2222:  The list of permissions for this resource cannot be found.
>    	More help may be obtained by typing NET HELPMSG 2222.
    
    This is a nuance of the NET ACCESS command.  When a resource has no
    permissions _LIST_, you must use the /ADD qualifier, in place of the
    /GRANT qualifer.  Once a list has been created (regardless if it's
    empty), you _add_ ;o) to the list using /GRANT.  
    
    Unfortunately, you can't use /ADD everytime, either; if the list
    already exists, and you use /ADD, you get:
    
    NET2225:  The resource permission list already exists.
    
    Thank MS for all this fun...
    
    Paul
 | |||||
| 4225.2 | VMSNET::S_VORE | Smile - Mickey's Watching! | Mon Mar 24 1997 12:33 | 4 | |
|     >I'm not sure what those "permissions" are for (maybe when you're in
    >Share-level security?), but they won't give you access (see below).
    
    Bingo - Share-level only
 | |||||
| 4225.3 | Thanks | EDSD05::CHEQUER | Tue Mar 25 1997 03:12 | 2 | |
|     thanks guys!
    
 | |||||