Edit NTFS access permissions?

  • Thread starter Thread starter Sven Pran
  • Start date Start date
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
 
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.
 
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
 
(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
 
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
 
Back
Top