Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > Set rights with Icacls

Reply
Thread Tools Display Modes

Set rights with Icacls

 
 
Beat
Guest
Posts: n/a

 
      07-12-2007
Hi there,
I'd like to change the rights for a folder in c:\program files\... with the
command Icacls. But I always get the result permission denied.
What parameter should I use?

Any help will be appreciated.
 
Reply With Quote
 
 
 
 
Kerry Brown
Guest
Posts: n/a

 
      07-12-2007
"Beat" <> wrote in message
news105F1B9-D143-45F1-BD1F-...
> Hi there,
> I'd like to change the rights for a folder in c:\program files\... with
> the
> command Icacls. But I always get the result permission denied.
> What parameter should I use?
>
> Any help will be appreciated.



You need to do this from an elevated command prompt. Right click on the
Command Prompt icon and pick Run as administrator.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


 
Reply With Quote
 
Beat
Guest
Posts: n/a

 
      07-12-2007
Hi Kerry,
Thanks for the good help.
This works great but the next problem is to run this from a Installer where
I have only the "normal" command prompt. I want to do this during the install
process. So we could save the update for this user directly in this folder
and delete the old one.

Thanks again.
beat

"Kerry Brown" wrote:

> "Beat" <> wrote in message
> news105F1B9-D143-45F1-BD1F-...
> > Hi there,
> > I'd like to change the rights for a folder in c:\program files\... with
> > the
> > command Icacls. But I always get the result permission denied.
> > What parameter should I use?
> >
> > Any help will be appreciated.

>
>
> You need to do this from an elevated command prompt. Right click on the
> Command Prompt icon and pick Run as administrator.
>
> --
> Kerry Brown
> Microsoft MVP - Shell/User
> http://www.vistahelp.ca
>
>

 
Reply With Quote
 
Kerry Brown
Guest
Posts: n/a

 
      07-12-2007
"Beat" <> wrote in message
news:EFB3746D-1DF5-482B-A4BF-...
> Hi Kerry,
> Thanks for the good help.
> This works great but the next problem is to run this from a Installer
> where
> I have only the "normal" command prompt. I want to do this during the
> install
> process. So we could save the update for this user directly in this folder
> and delete the old one.
>
> Thanks again.
> beat
>



Then the installer has to be "Run as administrator" or ask Vista for
administrator privileges. There is no way to do administrator actions
without running into UAC if UAC is turned on. If you are writing an
installer you have to assume UAC is on.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


 
Reply With Quote
 
Beat
Guest
Posts: n/a

 
      07-13-2007
Hi Kerry,
If I execute the command "runas /user:administrator" I have to fill in the
Adminitratonpassword witch I don't have.
What about the second solution? What is to do correctly?

Thanks!
beat

"Kerry Brown" wrote:

> "Beat" <> wrote in message
> news:EFB3746D-1DF5-482B-A4BF-...
> > Hi Kerry,
> > Thanks for the good help.
> > This works great but the next problem is to run this from a Installer
> > where
> > I have only the "normal" command prompt. I want to do this during the
> > install
> > process. So we could save the update for this user directly in this folder
> > and delete the old one.
> >
> > Thanks again.
> > beat
> >

>
>
> Then the installer has to be "Run as administrator" or ask Vista for
> administrator privileges. There is no way to do administrator actions
> without running into UAC if UAC is turned on. If you are writing an
> installer you have to assume UAC is on.
>
> --
> Kerry Brown
> Microsoft MVP - Shell/User
> http://www.vistahelp.ca
>
>

 
Reply With Quote
 
Kerry Brown
Guest
Posts: n/a

 
      07-13-2007
You need to create a manifest for the installer/upgrade program. When the
program is run UAC will prompt for credentials. An administrator will have
to enter the credentials.

http://www.google.com/search?hl=en&q...soft.com&meta=

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"Beat" <> wrote in message
news:80F6127F-D3BB-4881-B5B7-...
> Hi Kerry,
> If I execute the command "runas /user:administrator" I have to fill in the
> Adminitratonpassword witch I don't have.
> What about the second solution? What is to do correctly?
>
> Thanks!
> beat
>
> "Kerry Brown" wrote:
>
>> "Beat" <> wrote in message
>> news:EFB3746D-1DF5-482B-A4BF-...
>> > Hi Kerry,
>> > Thanks for the good help.
>> > This works great but the next problem is to run this from a Installer
>> > where
>> > I have only the "normal" command prompt. I want to do this during the
>> > install
>> > process. So we could save the update for this user directly in this
>> > folder
>> > and delete the old one.
>> >
>> > Thanks again.
>> > beat
>> >

>>
>>
>> Then the installer has to be "Run as administrator" or ask Vista for
>> administrator privileges. There is no way to do administrator actions
>> without running into UAC if UAC is turned on. If you are writing an
>> installer you have to assume UAC is on.
>>
>> --
>> Kerry Brown
>> Microsoft MVP - Shell/User
>> http://www.vistahelp.ca
>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista and icacls Todd Hudson Windows Vista General Discussion 2 04-23-2008 06:19 AM
How to use icacls.exe to fully enable users to subfolders/files Tom Windows Vista Security 5 01-30-2008 02:49 AM
Need administrative rights Ken W Windows Vista Installation 4 10-30-2007 03:00 AM
Grant permission using ICACLS antigravity Windows Vista File Management 0 08-14-2007 02:40 AM
More rights -Polity`4h- Windows Vista Administration 2 03-11-2007 12:40 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59