#32100 - 2002-11-08 10:04 PM
user privilege on NT 4.0 to set time
|
allbymyself
Just in Town
Registered: 2002-11-08
Posts: 2
|
I am trying to write a logon script that will set the time on a NT 4.0 workstation. The users are not local admin, therefore they have no rights to change the time (which is the way we want it). I have composed the script as follows (based on other postings here):
if exist %WINDIR%\nettime.exe goto set_rights copy "%0\..\nettime.exe" "%WINDIR%" copy "%0\..\rtzone.exe" "%WINDIR%"
:set_rights
%0\..\ntrights +r SeSystemtimePrivilege -u Users
NET TIME %LOGONSERVER% /SET /Y
%0\..\ntrights -r SeSystemtimePrivilege -u Users
goto Final :Final
When I run this as a regular user, I get the following errors:
***Error*** OpenPolicy -1073741790 (when it tries to grant the permissions). After the Net time command executes I get the message System error 1314 has occurred. A required privilege is not held by the client. What do I need to do to correct this?
|
|
Top
|
|
|
|
#32101 - 2002-11-08 10:07 PM
Re: user privilege on NT 4.0 to set time
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
users do not have the rights to change rights.
|
|
Top
|
|
|
|
#32102 - 2002-11-08 10:10 PM
Re: user privilege on NT 4.0 to set time
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
what you need to do, is stop playing with net time, and make yourself an admin script to PUSH nettime.exe out, configure it, and let it control setting the time.
This will be an administrative script, run by you, and then the user privs will not matter.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 271 anonymous users online.
|
|
|