Skip to main content
Inspiring
September 26, 2006
Question

OT: CHMOD on Windows?

  • September 26, 2006
  • 26 replies
  • 1705 views
How can I CHMOD files on Windows servers?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================



This topic has been closed for replies.

26 replies

Inspiring
September 26, 2006
So, 666 is only read/write and 777 is read/write/execute. I knew it was
something simple like that but just couldn't remember.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"David Powers" <david@example.com> wrote in message
news:efbdru$kc6$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> So - 666 is equivalent to what permissions then?
>
> Apart from being the sign of the devil, 666 means read/write permissions
> for everybody.
>
> 4 is read
> 2 is write
> 1 is execute
>
> Add the numbers together and you get all possible combinations from 0 (no
> permissions) to 7. The order of the digits represents owner, group, rest
> of the world.
>
> --
> David Powers
> Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
> http://foundationphp.com/


Inspiring
September 26, 2006
Thanks, lionstone. I'll see if this works with my host.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Lionstone" <HIDElionstone@HIDEhushmail.com> wrote in message
news:efbe6n$kot$1@forums.macromedia.com...
> Command line, sure, but it would also work from a BAT or COM file or WSH
> (windows scripting host) or anything that can send a command to the
> Windows shell.
> Some hosts allow you to run CACLS on your directories. Some do not.
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:efbdtb$ke0$1@forums.macromedia.com...
>> Thanks, lionstone.
>>
>> But I have to do this with host priveleges, right? And I have to do it
>> from a command line on the server, right?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.dreamweavermx-templates.com - Template Triage!
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Lionstone" <HIDElionstone@HIDEhushmail.com> wrote in message
>> news:efbd7g$jgg$1@forums.macromedia.com...
>>> Windows calls it an "Access Control List", which is why the command is
>>> unpronounceable.
>>>
>>> CACLS (change access control list settings is how I remember it) is what
>>> you're looking for.
>>> Basic usage:
>>>
>>> CACLS filename [/G user:permission] [/R user:permission]
>>> [/P user:permission] [/D user:permission]
>>>
>>> You can specify more than one user in each command (/G user:permission
>>> user:permission), but I normally am just doing it for either IUSR or my
>>> FTP account, so I'm a little rusty. :)
>>>
>>> /T is used if you want to apply the ACL to all specified files in the
>>> current directory and subdirectories (you can use DOS wildcards * and ?
>>> to specify more than one file at a time without using /T, but it won't
>>> hit subdirectories that way).
>>>
>>> /E is used if you want to edit the current ACL rather than replace it
>>> (you'll almost always be using /E).
>>>
>>> /C says to continue on access denied errors (only applies if you're
>>> specifiying more than one file/user).
>>> /G stands for "grant"
>>> /R stands for "revoke"
>>> /P stands for "replace"
>>> /D stands for "deny"
>>>
>>> Allowed values for "permission" are:
>>> N - none (except you can't "grant none" or "deny none", N can only be
>>> used with /P)
>>> R - read
>>> C - change (write)
>>> F - full control (create, delete, etc)
>>>
>>> Examples:
>>> To grant IUSR permission to create new files in a directory, you'd enter
>>> CACLS directoryname /E /G IUSR_SERVERNAME:F
>>>
>>> If you want to grant IUSR read-only permission for all the files in a
>>> certain directory and its subdirectories, you'd enter
>>> CACLS directoryname /E /G /T IUSR_SERVERNAME:R
>>>
>>> To specifically deny write access over the same, you could do
>>> CACLS directoryname /E /D /T IUSR_SERVERNAME:C
>>>
>>>
>>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>>> news:efb36g$66e$1@forums.macromedia.com...
>>>> How can I CHMOD files on Windows servers?
>>>>
>>>> --
>>>> Murray --- ICQ 71997575
>>>> Adobe Community Expert
>>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>>> ==================
>>>> http://www.dreamweavermx-templates.com - Template Triage!
>>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>>> ==================
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Inspiring
September 26, 2006
Command line, sure, but it would also work from a BAT or COM file or WSH
(windows scripting host) or anything that can send a command to the Windows
shell.
Some hosts allow you to run CACLS on your directories. Some do not.


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:efbdtb$ke0$1@forums.macromedia.com...
> Thanks, lionstone.
>
> But I have to do this with host priveleges, right? And I have to do it
> from a command line on the server, right?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
>
> "Lionstone" <HIDElionstone@HIDEhushmail.com> wrote in message
> news:efbd7g$jgg$1@forums.macromedia.com...
>> Windows calls it an "Access Control List", which is why the command is
>> unpronounceable.
>>
>> CACLS (change access control list settings is how I remember it) is what
>> you're looking for.
>> Basic usage:
>>
>> CACLS filename [/G user:permission] [/R user:permission]
>> [/P user:permission] [/D user:permission]
>>
>> You can specify more than one user in each command (/G user:permission
>> user:permission), but I normally am just doing it for either IUSR or my
>> FTP account, so I'm a little rusty. :)
>>
>> /T is used if you want to apply the ACL to all specified files in the
>> current directory and subdirectories (you can use DOS wildcards * and ?
>> to specify more than one file at a time without using /T, but it won't
>> hit subdirectories that way).
>>
>> /E is used if you want to edit the current ACL rather than replace it
>> (you'll almost always be using /E).
>>
>> /C says to continue on access denied errors (only applies if you're
>> specifiying more than one file/user).
>> /G stands for "grant"
>> /R stands for "revoke"
>> /P stands for "replace"
>> /D stands for "deny"
>>
>> Allowed values for "permission" are:
>> N - none (except you can't "grant none" or "deny none", N can only be
>> used with /P)
>> R - read
>> C - change (write)
>> F - full control (create, delete, etc)
>>
>> Examples:
>> To grant IUSR permission to create new files in a directory, you'd enter
>> CACLS directoryname /E /G IUSR_SERVERNAME:F
>>
>> If you want to grant IUSR read-only permission for all the files in a
>> certain directory and its subdirectories, you'd enter
>> CACLS directoryname /E /G /T IUSR_SERVERNAME:R
>>
>> To specifically deny write access over the same, you could do
>> CACLS directoryname /E /D /T IUSR_SERVERNAME:C
>>
>>
>> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
>> news:efb36g$66e$1@forums.macromedia.com...
>>> How can I CHMOD files on Windows servers?
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do so!)
>>> ==================
>>> http://www.dreamweavermx-templates.com - Template Triage!
>>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>>
>>
>>
>
>


Inspiring
September 26, 2006
Thanks, lionstone.

But I have to do this with host priveleges, right? And I have to do it from
a command line on the server, right?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Lionstone" <HIDElionstone@HIDEhushmail.com> wrote in message
news:efbd7g$jgg$1@forums.macromedia.com...
> Windows calls it an "Access Control List", which is why the command is
> unpronounceable.
>
> CACLS (change access control list settings is how I remember it) is what
> you're looking for.
> Basic usage:
>
> CACLS filename [/G user:permission] [/R user:permission]
> [/P user:permission] [/D user:permission]
>
> You can specify more than one user in each command (/G user:permission
> user:permission), but I normally am just doing it for either IUSR or my
> FTP account, so I'm a little rusty. :)
>
> /T is used if you want to apply the ACL to all specified files in the
> current directory and subdirectories (you can use DOS wildcards * and ? to
> specify more than one file at a time without using /T, but it won't hit
> subdirectories that way).
>
> /E is used if you want to edit the current ACL rather than replace it
> (you'll almost always be using /E).
>
> /C says to continue on access denied errors (only applies if you're
> specifiying more than one file/user).
> /G stands for "grant"
> /R stands for "revoke"
> /P stands for "replace"
> /D stands for "deny"
>
> Allowed values for "permission" are:
> N - none (except you can't "grant none" or "deny none", N can only be used
> with /P)
> R - read
> C - change (write)
> F - full control (create, delete, etc)
>
> Examples:
> To grant IUSR permission to create new files in a directory, you'd enter
> CACLS directoryname /E /G IUSR_SERVERNAME:F
>
> If you want to grant IUSR read-only permission for all the files in a
> certain directory and its subdirectories, you'd enter
> CACLS directoryname /E /G /T IUSR_SERVERNAME:R
>
> To specifically deny write access over the same, you could do
> CACLS directoryname /E /D /T IUSR_SERVERNAME:C
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:efb36g$66e$1@forums.macromedia.com...
>> How can I CHMOD files on Windows servers?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do so!)
>> ==================
>> http://www.dreamweavermx-templates.com - Template Triage!
>> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
>> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
>> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
>> ==================
>>
>>
>>
>
>


Inspiring
September 26, 2006
Murray *ACE* wrote:
> So - 666 is equivalent to what permissions then?

Apart from being the sign of the devil, 666 means read/write permissions
for everybody.

4 is read
2 is write
1 is execute

Add the numbers together and you get all possible combinations from 0
(no permissions) to 7. The order of the digits represents owner, group,
rest of the world.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Inspiring
September 26, 2006
Windows calls it an "Access Control List", which is why the command is
unpronounceable.

CACLS (change access control list settings is how I remember it) is what
you're looking for.
Basic usage:

CACLS filename [/G user:permission] [/R user:permission] [/P
user:permission] [/D user:permission]

You can specify more than one user in each command (/G user:permission
user:permission), but I normally am just doing it for either IUSR or my FTP
account, so I'm a little rusty. :)

/T is used if you want to apply the ACL to all specified files in the
current directory and subdirectories (you can use DOS wildcards * and ? to
specify more than one file at a time without using /T, but it won't hit
subdirectories that way).

/E is used if you want to edit the current ACL rather than replace it
(you'll almost always be using /E).

/C says to continue on access denied errors (only applies if you're
specifiying more than one file/user).
/G stands for "grant"
/R stands for "revoke"
/P stands for "replace"
/D stands for "deny"

Allowed values for "permission" are:
N - none (except you can't "grant none" or "deny none", N can only be used
with /P)
R - read
C - change (write)
F - full control (create, delete, etc)

Examples:
To grant IUSR permission to create new files in a directory, you'd enter
CACLS directoryname /E /G IUSR_SERVERNAME:F

If you want to grant IUSR read-only permission for all the files in a
certain directory and its subdirectories, you'd enter
CACLS directoryname /E /G /T IUSR_SERVERNAME:R

To specifically deny write access over the same, you could do
CACLS directoryname /E /D /T IUSR_SERVERNAME:C


"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:efb36g$66e$1@forums.macromedia.com...
> How can I CHMOD files on Windows servers?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
>
>


Inspiring
September 26, 2006
Has anyone used this utility?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"John Doe" <jdoe_ns@telefonica.net> wrote in message
news:efb9hg$dtl$1@forums.macromedia.com...
> check chmod Win utility. i haven't used it, just someone talk to me about
> it
>
> Murray *ACE* wrote:
>> How can I CHMOD files on Windows servers?


Inspiring
September 26, 2006
check chmod Win utility. i haven't used it, just someone talk to me about it

Murray *ACE* wrote:
> How can I CHMOD files on Windows servers?
Inspiring
September 26, 2006
Thanks, guys....

<glug>

I didn't want to have to go back to the host....

So - 666 is equivalent to what permissions then? I believe that 777 is
read/write/execute for everyone....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"zerof" <zerof@terra.com.br> wrote in message
news:efb90j$dk9$1@forums.macromedia.com...
> Murray *ACE* escreveu:
>> Permission twiddling! 8)
>>
> ----------
> Easinesses as in the *NIX environment - I don't believe to exist, however,
> I think this is usefull:
>
> http://www.scriptlogic.com/Group_Policy_Management.asp
> -----
> zerof


Inspiring
September 26, 2006
Murray *ACE* escreveu:
> Permission twiddling! 8)
>
----------
Easinesses as in the *NIX environment - I don't believe to exist,
however, I think this is usefull:

http://www.scriptlogic.com/Group_Policy_Management.asp
-----
zerof