Linked by Brian Snipes on Sat 10th Apr 2004 07:28 UTC
Recently I got the opportunity to setup a new lab for a small school. The server runs Linux and the workstations run WindowsXP. There are 3 levels of access on the workstations (admin, teacher, and student) and security on the workstations is based on Windows policies applied at logon.
Permalink for comment
To read all comments associated with this story, please click here.
Correction, leave allone the directive:
directory mask = 0775
That was stupid of me, heh. The rest of that post seems ok though. (It must be weekend or something ... :-))
@OP
Instead of:
%logonserver%netlogonifmember "teachers"
One could probably do something like:
net user "%username%" /domain |find /i "teachers" >nul
Or maybe, the other way around:
net group "teachers" /domain |find /i "%username%" >nul
(You may have to test for some other errorlevel then BTW.)
IIRC there is a "whoami" command in NT, maybe of interest.