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

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.
 
D

Drew Cooper [MSFT]

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.
 
J

Joe Richards [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top