Restricting Viewable Drives in NetStorage
Novell Cool Solutions: Trench
By Chris Bailey
Digg This -
Posted: 19 Dec 2002
Novell's NetStorage (included with NetWare 6) is a great feature that our staff loves. Up until now, if our staff wanted to work on something at home, they would either have to e-mail it to themselves or use a floppy disk. However, with NetStorage, they can simply log into our web site and download the files from their home directory quickly and easily -- without knowing exactly what files they need before leaving school!
NetStorage uses the user's login script in order to determine which areas they have access to. However, we have several drives that must be mapped when logged into a school computer that they shouldn't have access to at home (I don't exactly want my teachers to be making illegal copies of our networked application software onto their home computers).
To fix this we made a simple alteration to our login scripts that determine where the staff member is logging in from -- school or NetStorage. Any mappings that you don't want to be made should be encased inside an IF ?<WEBACCESS>? <> ?1? statement. Don't forget to put END at the end of the restricted section!
An example of our normal (non-restricted) login script:
MAP F:=.APPS-1_SYS.APPS.RESOURCES.CARTHAGE:\ #shouldn't have home access MAP G:=.APPS-1_APPS.APPS.RESOURCES.CARTHAGE:\ #shouldn't have home access MAP H:=%HOME_DIRECTORY #user home directory MAP I:=.HOME-1_HOME.HOME.RESOURCES.CARTHAGE:\DISTSHAR\ #shared files directory
An example of our new NetStorage restricted login script:
IF ?<WEBACCESS>? <> ?1? MAP F:=.APPS-1_SYS.APPS.RESOURCES.CARTHAGE:\ #doesn't have home access MAP G:=.APPS-1_APPS.APPS.RESOURCES.CARTHAGE:\ #doesn't have home access END MAP H:=%HOME_DIRECTORY #user home directory MAP I:=.HOME-1_HOME.HOME.RESOURCES.CARTHAGE:\DISTSHAR\ #shared files directory
Chris Bailey is a member of the School Cool Solutions Advisory Board. You can find him at http://coolsolutions.com/forums/