Edit NTFS access permissions?

S

Sven Pran

Running Windows XP Home Edition I need to edit
the access permissions on some files (under the
"Program Files" main folder). I do not want to make
the files "shared" but rather to give modify (or write)
permission to one particular userid on my system.

Can some one save me some time and point me to
a useful reference?

regards Sven
 
K

karl levinson, mvp

Sven Pran said:
Running Windows XP Home Edition I need to edit
the access permissions on some files (under the
"Program Files" main folder). I do not want to make
the files "shared" but rather to give modify (or write)
permission to one particular userid on my system.

Can some one save me some time and point me to
a useful reference?

I believe the only way to do this on XP Home is to open a command prompt
[CMD.EXE] and run the CACLS command, like this:

CACLS c:\progra~1\foldername /T / E /C /G username:W

I almost ALWAYS use the /T /E /C switches with CACLS.

CACLS is pretty easy. Simply type "CACLS" to see the following online help:

/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.
 
S

Sven Pran

karl levinson said:
Sven Pran said:
Running Windows XP Home Edition I need to edit
the access permissions on some files (under the
"Program Files" main folder). I do not want to make
the files "shared" but rather to give modify (or write)
permission to one particular userid on my system.

Can some one save me some time and point me to
a useful reference?

I believe the only way to do this on XP Home is to open a command prompt
[CMD.EXE] and run the CACLS command, like this:

CACLS c:\progra~1\foldername /T / E /C /G username:W

I almost ALWAYS use the /T /E /C switches with CACLS.

CACLS is pretty easy. Simply type "CACLS" to see the following online
help:

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


Thanks!

I have briefly looked into the Windows API available from Delphi, but this
seems in fact far easier to use.

Thanks again and regards

Sven
 
N

Nepatsfan

(e-mail address removed),
Sven Pran said:
Running Windows XP Home Edition I need to edit
the access permissions on some files (under the
"Program Files" main folder). I do not want to make
the files "shared" but rather to give modify (or write)
permission to one particular userid on my system.

Can some one save me some time and point me to
a useful reference?

regards Sven

Boot into Safe Mode. You will now have access to the Security
tab on the folder's Properties sheet.

Good luck

Nepatsfan
 
S

Sven Pran

Nepatsfan said:
(e-mail address removed),


Boot into Safe Mode. You will now have access to the Security tab on the
folder's Properties sheet.

Good luck

Nepatsfan

Thanks for the suggestion, now I have two promising approaches!

regards Sven
 

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