Web Hosting Talk







View Full Version : Remotely setting NT file permissions


Lawrence
04-18-2001, 08:11 PM
Is it possible to remotely set NT file permissions, and how is it done? A lot of FTP programs have features to chmod files for Unix, but is there anything that can do this for NT?

JTY
04-18-2001, 08:16 PM
I believe that is something that could only be set via a hosts control panel.

Lawrence
04-19-2001, 05:28 AM
Thanks JTY.

I thought the same, just checkin' :D

Kaith Sutai-Rustaz
04-19-2001, 10:23 AM
Its been our experience that you have to physically be at the server to change em. We did a E-com job last year with a company on an NT box, and it was a nightmare.

"We need permissions set on a file"
"Use your FTP client"
"We Tried, didnt work. Your NT remember?"
"Oh Yeah, we'll put a ticket in, should be done within 48 hrs"

They were a reseller of a reseller of AIT (the paraniod people) Arrrrrr. :angry:

Anyway, I'm pretty sure you have to have true admin access to the server, or physical access, not just domain-admin access, ie ftp. (NT doesn't support telnet without 3rd party stuff far as I know)

Good Luck

Lawrence
04-19-2001, 07:04 PM
I know the nightmare Kaith! In fact I'm living it every day at the moment running support for our client's who are on NT boxes. Only this time one customer said that their host wouldn't change permissions for anyone unless they were on a dedicated server, that's why I asked. That makes no sense to me, if you're of a dedicated, wouldn't you have a control panel or something so you could do it yourself?

JamesUS
04-20-2001, 02:50 AM
If you have telnet access to your box with one of the add-ons to do that (or Win2k includes a telnet service as standard) there is a program called "cacls" that lets you set permissions.

Usage taken from my box:

CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]
[/P user:perm [...]] [/D user [...]]
filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G user:perm Grant specified user access rights.
Perm can be: R Read
W Write
C Change (write)
F Full control
/R user Revoke specified user's access rights (only valid with /E).
/P user:perm Replace specified user's access rights.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
/D user Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.

Lawrence
04-20-2001, 03:26 AM
Will that work if you're on a shared server and don't have administrator access James?

JamesUS
04-20-2001, 03:51 AM
I've never tried it on a shared server but it should be OK as long as you are either the owner of the file or have permission to change permissions on it.

Kaith Sutai-Rustaz
04-20-2001, 11:26 AM
Lawrence - You would think there would be a control panel, but my experience has been that most of the servers out there either have none, or very very little. We get spoiled with the cpanels, and plesk, and other great packages out there. :)