[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 507
  • Last Modified:

How to setup NTFS permissions using user logon and having admin credentials

Does anyone know how to setup NTFS permissions using user logon and having admin credentials. Computer is standalone, login as administrator is known but lame solution :) Using command line with runas to setup permissions is not very straightforwad...
If I just could launch Windows Explorer with administrative credentials...
It would be interesting to know how to do this in WIndows XP, Vista and Windows 7.
0
Vaidas911
Asked:
Vaidas911
  • 4
  • 4
1 Solution
 
slemmesmiCommented:
Dear Vaidas911,

do you wish to set or change NTFS permissions on a folder or files during a logon process?

Kind regards,
Soren
0
 
Vaidas911Author Commented:
I would like to change folder NTFS perrmisions while I am loged on as restricted user, but I do have administrator account and password.
0
 
slemmesmiCommented:
Dear Vaidas911,

if you don't have an account with local administrative privileges you can not change permissions on folders and files the account you are logged in with have not the permissions to do so already.
You will need to elevate your privileges to an account (such as the local administrator) which has those permissions.
The elevation can e.g. happen through "RunAs" (either from command line or when you start a "Windows Explorer").
The latter can be achieved by keeping a <SHIFT> button pressed when right-clicking "Windows Explorer", then select "Run as...".
You will be prompted for the credentials of the acocunt you will run as.

Kind regards,
Soren
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
Vaidas911Author Commented:
I have administrator account, I just don't want to waste my time to logoff user and logon admin.
Windows Explorer does not run with both of your Run as suggestions, at least it didn't work that way for me.
0
 
slemmesmiCommented:
Dear Vaidas911,

if it doesn't work for you with the "Windows Explorer", you can instead use IE as your file browser (in the address field e.g. enter C:\).
To start IE from command line using runas, run the following:
runas /user:administrator "C:\Program Files\Internet Explorer\iexplore.exe"

This will prompt you for the password of the administrator.
You will need to verify the path to iexplore.exe is correct on your system as in the above example.
You can also create a short-cut with the above string in "Type the location of the item" field, to make it a bit easier for you.

Kind regards,
Soren


0
 
Vaidas911Author Commented:
How are you going to change Windows folder permissions using IE?
0
 
slemmesmiCommented:
Dear Vaidas911,

Not that I'd recommend you to change the permissions on C:\Windows as this can disrupt functionlity of your system(!), here is HOW it CAN be done:

1. Start IE as administrator (as explained in post above).
2. Browse to C:\ (enter C:\ in the address Field).
3. Right-click C:\Windows and open Properties.
4. Select the Security tap.
5. Change the permissions as needed.

Kind regards,
Soren
0
 
Vaidas911Author Commented:
Thanks, IE worked like charm
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now