Running a file(XCACLS) as a regular user from a logon script

  • Thread starter Thread starter Saucer Man
  • Start date Start date
S

Saucer Man

I am trying to run a XCACLS from a logon script to change the security of a
file. I have windows 2000 workstations in a WIN NT domain. It seems that
XCACLS will not let me change permissions on the
file...winnt/system32/drivers/etc/host. Is there a way I can do this??? I
want to be able to replace this file on all my workstations. Once I change
the rights, I can then overwrite the file with a new one. My users are not
administrators. Thanks.
 
Xcacls is running in the context of the user logging on. That user
evidently doesn't have write permissions on the hosts file. On my Win2k box
I see users and power users with read, admins and system with full - I think
this is the default. The solution is to run xcacls in the context of an
administrator or the system.
 
And to do that check out CPAU on the free win32 tools page of
www.joeware.net....

--
www.joeware.net


Drew Cooper said:
Xcacls is running in the context of the user logging on. That user
evidently doesn't have write permissions on the hosts file. On my Win2k box
I see users and power users with read, admins and system with full - I think
this is the default. The solution is to run xcacls in the context of an
administrator or the system.
--
Drew Cooper [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.


Saucer Man said:
I am trying to run a XCACLS from a logon script to change the security
of
a
file. I have windows 2000 workstations in a WIN NT domain. It seems that
XCACLS will not let me change permissions on the
file...winnt/system32/drivers/etc/host. Is there a way I can do this??? I
want to be able to replace this file on all my workstations. Once I change
the rights, I can then overwrite the file with a new one. My users are not
administrators. Thanks.
 
Back
Top