Administrators Can Remove Themselves from the Permissions for a Shared Resource. (225745)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Datacenter Server
- Microsoft Windows NT Server 4.0
This article was previously published under Q225745 SYMPTOMS
Administrators can remove any share or NTFS security permissions from a shared device, including their own permissions to a device. In many cases, this action could remove the only group that had permission to the resource. This effectively leaves the shared device with no way to gain access at all, similar to setting Everyone with "No Access".
As a safeguard, Windows NT prompts the administrator with this warning message when removing the last user or group from NTFS security permissions to a resource:
You have denied everyone access to C:\share-name. Nobody will be able to access C:\share-name and only the owner will be able to change the permissions.
Do you wish to continue?
Yes
No
Here is the warning message displayed when removing the last user or group from Share permissions to a resource:
You have denied everyone access to (Folder name). Nobody will be able to access (Folder name) and only the owner will be able to change the permissions.
Do you wish to continue?
Yes
No
After performing this operation, any attempt to gain access to the folder yields the following error message:
C:\share-name is not accessible.
Access is Denied.
Retry
Cancel
CAUSE
This behavior occurs by design of the Windows NT operating system. The Administrator can add and remove any user's or group's permissions to a resource.
RESOLUTION
To resolve this problem and correct the Share permissions of a shared resource:
- Double-click on My Computer to display the computer's resources.
- Click on the share resource, example C:\Share_name.
- On the File menu, click Properties.
- Click the Share tab.
- Click Permissions.
- View the groups and users along with their permissions. Change existing share permissions using the Type of Access list.
- If the group or user is not listed, click Add.
- Select the appropriate group or user from the list by double-clicking on the name, then use the Type of Access list to select Full Control.
- Click OK, and view the results on the previous screen. Click OK, and then click OK again on the main Properties dialog box.
- Test the access from a client workstation to validate the shared permissions.
To Correct the NTFS security permissions by either adding appropriate permissions or to Take Ownership of a shared resource:
- Double-click My Computer to display the computer's resources.
- Click the share resource. For example, C:\Share-name.
- On the File menu, click Properties.
- Click Security tab.
- Click either the Permissions button or the Ownership button, depending on the desired result. Try the permissions button first.
- View the groups and users as well as their permissions. Change existing permissions by using the Type of Access list.
- If the group or user is not listed, click Add.
- Click the appropriate group or user from the list by double-clicking on the name, then use the Type of Access list to select Full Control
- Click OK, view the results on the previous screen, and then click on the appropriate check boxes for "Replace Permissions on Subdirectories" and "Replace Permissions on Existing Files". These both apply the permissions from the share point to sub-folders and files.
- Then click OK, and CLICK OK again on the Main Properties page.
- Test the access privileges to validate the NTFS permissions.
If the appropriate level of permissions has not been recovered:
- Take Ownership is appropriate.
- Follow steps 1 - 4 from the NTFS permissions section above.
- Click the Ownership button.
- A dialog box appears and displays:
Directory Name: D:\
Owner: Administrators
Close
Take Ownership
Help
- Click the Take Ownership button.
- This causes the following error message to be displayed:
One or more of the items selected is a directory. Do you want to take ownership of all the files and contained in the selected directories?
Yes
No
Cancel
- Click Yes, which makes the Administrators the owner of the whole directory structure and all of the files in it.
Taking Ownership is also a good way to gain access to the home folder of a user that has left the organization. The Administrator can take ownership of the resource and then assigns permissions to a new user. Note: This will also work if you install in a separate hard drive (if you cannot boot into the system), conduct a parallel install, and then take ownership.
Modification Type: | Major | Last Reviewed: | 5/14/2003 |
---|
Keywords: | kbprb KB225745 |
---|
|