[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::pwv50ift

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

4225.0. "Personal shares and NET ACCESS ?" by EDSD05::CHEQUER () Mon Mar 24 1997 11:18

    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.RTitleUserPersonal
Name
DateLines
4225.1Change /GRANT to /ADDVMSNET::P_NUNEZMon Mar 24 1997 12:2033
    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.2VMSNET::S_VORESmile - Mickey's Watching!Mon Mar 24 1997 12:334
    >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.3ThanksEDSD05::CHEQUERTue Mar 25 1997 03:122
    thanks guys!