Web Hosting Talk







View Full Version : changing directory permissions on an NT box?


RIPE
11-20-2002, 09:14 PM
heyas,

i know it's easy to change permissions under *nix boxes through chmod, but is there an equivalent for NT?

my client is on a shared NT hosting box and i need to give a script write access to a dir... but keeps coming back with permission denied.

any ideas?

thanks.


michelle

MoSupaFly
11-20-2002, 10:05 PM
There is a command line utility for Windows NT/2000/XP that you're looking for that not many ppl seem to know about.

At the command line type in 'cacls' (sans the single quotes). It'll show you the command line arguments needed. It says it modifies the ACLs for files... but it will do directories as well.

To do directories just type in the full path of the directory in place of where you'd put a filename.

If you're unsure how to use the program just ask or do a search on google or on Microsoft. You're bound to find info on this handy program.

MoSupaFly
11-20-2002, 10:12 PM
Ohh and if the server resource kit is installed on the Windows machine... you may have access to a better version called 'xcacls' which allows to have a little more control (like take ownership).

Do be careful with 'cacls' though. You may come accidentally remove all access which then you'd never be able to reset them unless you can take ownership of the file/directory again -- which can only be done if you have 'xcacls' or from the GUI.

RIPE
11-21-2002, 12:16 AM
Hmm thanks Mo... only thing is, I'm doing this from FTP and it comes back with command not found.

Does it have to be done in a shell, or...?

MoSupaFly
11-21-2002, 04:41 AM
From FTP?? :eek:

hmm... dunno how to help you there then.

yeah.. the 'cacls' command has to be run on the web server.

chrisb
11-21-2002, 05:05 AM
I'm guessing, but you might try using the SITE command from FTP, such as

SITE xcacls blah