Wednesday, March 20, 2013

Windows Administration - Setup - Set ownership and permission to file/folder/drive letter




Environment: Windows 7



Trying to set ownership and permission to my external drive

Take ownership - using command prompt 

Steps:
  1. Click Start , click All programs , and click Accessories
  2. Right-click Command Prompt and click Run as administrator
  3. In Administrator: Command Prompt window
  4. Type command "takeown /F G:"

Take ownership - using ui 
Steps:
  1. Select drive (G) - right mouse button - select Properties
  2. Go to 'Security' tab - Click 'Advanced' button (see screenshot-01)
  3. It will open 'Advanced Security Settings' wizard 
  4. Select Owner tab 
  5. Click 'Edit...' button (see screenshot-02)
  6. Next screen might display 'Administrator' and current user in the 'Change owner to' list
  7. If it's needed to set owner to different user, click 'Other users and groups' button (see screenshot-03)
  8. Enter correct username or group name and hit enter in 'Select User, Computer, Service Account or Group' screen

Set permission - using command prompt 

Steps:
  1. Click Start , click All programs , and click Accessories
  2. Right-click Command Prompt and click Run as administrator
  3. In Administrator: Command Prompt window
  4. Type command "CACLS G: /G Administrator:F" [meaning of command: give full permission (F) to user (Administrator) for drive G)

Set permission - using ui 
Steps:
  1. Select drive (G) - right mouse button - select Properties
  2. Go to 'Security' tab - Click 'Advanced' button (see screenshot-01)
  3. It will open 'Advanced Security Settings' wizard 
  4. Go to 'Permission' tab
  5. Click 'Configure' button (see screenshot-04)
  6. In next screen, to add new user, click 'Add' button (see screenshot-05)
  7. To to modify permission attributes, select the user from the list and click 'Edit...' button (see screenshot-06)

Screenshots:

Screenshot-01:






















Screenshot-02:



















Screenshot-03:















Screenshot-04: 



















Screenshot-05:




Screenshot-06:




























Resources:

No comments: