Windows XP Folder Access Denied
Hi Everyone,
I am using Windows XP Media center edition. I think its similar to windows xp pro with added media features. Anyways I have 1 user account which is my account and its an administrator account. What I wanted is if anyone else log in my pc then he/she should not get persmission to view certain folders that I wanted. So I created another account with the name "User" and set it to limited account. Then I logged into my admin account and disabled simple file sharing. Then I right clicked on a folder and did properties. And in security I selected the user account named "User" and selected deny for most options (like modify, read & execute , read ) etc.
Now when I logged in thru account "User" then I am unable to access that folder. Thats okay and its what I intended. But the problem is when I login thru my own account (which is admin a/c) I also get the same error. If I double click on that folder it says access denied. I am unable to set its security properties.
Now how do I fix this problem and achieve what I originally planned to do. I am myself now unable to access that folder thru my own admin a/c.
If I enable simple file sharing and goto folder properties I do not see security tab.
If anyone can help me I would be glad.
Thanks,
Jack
Re: Windows XP Folder Access Denied
Re: Windows XP Folder Access Denied
To resolve this issue, you must turn off Simple File Sharing, and then take ownership of the folder:
1. Turn off Simple File Sharing:
1) Click Start, and then click My Computer.
2) On the Tools menu, click Folder Options, and then click the View tab.
3) Under Advanced Settings, click to clear the Use simple file sharing (Recommended) check box, and then click OK.
2. Right-click the folder that you want to take ownership of, and then click Properties.
3. Click the Security tab, and then click OK on the Security message, if one appears.
4. Click Advanced, and then click the Owner tab.
5. In the Name list, click your user name, Administrator if you are logged in as Administrator, or click the Administrators group.
If you want to take ownership of the contents of that folder, click to select the Replace owner on subcontainers and objects check box.
6. Click OK. You may receive the following error message, where Folder is the name of the folder that you want to take ownership of:
Quote:
You do not have permission to read the contents of directory Folder. Do you want to replace the directory permissions with permissions granting you Full Control? All permissions will be replaced if you press Yes.
7. Click Yes.
8. Click OK, and then reapply the permissions and security settings that you want for the folder and the folder contents.
Re: Windows XP Folder Access Denied
Thanks. It worked and I now have ownership of the folder.
Can you tell me what do I need to do if I want to prevent other users from accessing a particular folder. I have 2 user accounts, one is mine which is admin account and other is account name is "user" which is limited. If I want that a/c not to access a folder then what do I do.
Thanks,
Jack
Re: Windows XP Folder Access Denied
I will provide you some details regarding how to prevent user from accessing one particular folder, This sort of thing is normally done by using groups. First create a group for the special folder. Then add all of the users to that group except the one user to exclude. Then make the folder owned by the group and remove access for "other". Here is an example where there are user accounts user01, user02, and user03. We want to exclude user02 from the special folder. All user accounts already belong to the users, video, and disk user groups.
Quote:
groupadd specialfolder
usermod user01 -G specialfolder,video,disk
usermod user03 -G specialfolder,video,disk
chown root:specialfolder /specialfolder
chmod 770 /specialfolder
That's how I would do it.
Re: Windows XP Folder Access Denied
Go to the properties of the folder that you want to protect from other user accounts. In that select the Security tab. In that, select the user account and below are the permissions check boxes. In the 'Deny' column, check that boxes for the permissions that you want to deny for that user. Click OK.
Now, whatever permissions you have denied to that user, he/she cannot access those permissions in that account. For example, if you have set 'read' deny, then the person will not able to open that folder from that account. So simple...:ohyeah:
Enjoy.
Re: Windows XP Folder Access Denied
Thanks a lot for your help guys. What I did was remove the user from that group (for the particular folder) and it worked. :thumbup1:
SalVatore, earlier I had done exactly what you said but then my troubles started. I think because all permissions etc were being inherited by the group so once I clicked on deny for a particular user it did that for everyone.
Re: Windows XP Folder Access Denied
THanks Dude...
Now I am able to open the old windows group folder....
Thanks again
Quote:
Originally Posted by
Solomon
To resolve this issue, you must turn off Simple File Sharing, and then take ownership of the folder:
1. Turn off Simple File Sharing:
1) Click Start, and then click My Computer.
2) On the Tools menu, click Folder Options, and then click the View tab.
3) Under Advanced Settings, click to clear the Use simple file sharing (Recommended) check box, and then click OK.
2. Right-click the folder that you want to take ownership of, and then click Properties.
3. Click the Security tab, and then click OK on the Security message, if one appears.
4. Click Advanced, and then click the Owner tab.
5. In the Name list, click your user name, Administrator if you are logged in as Administrator, or click the Administrators group.
If you want to take ownership of the contents of that folder, click to select the Replace owner on subcontainers and objects check box.
6. Click OK. You may receive the following error message, where Folder is the name of the folder that you want to take ownership of:
7. Click Yes.
8. Click OK, and then reapply the permissions and security settings that you want for the folder and the folder contents.