XP/Vista - How to password protect shared files/directories?
#1
Posted 01 February 2008 - 04:53 AM
Do I need to set up a domain to do so? Can I get some recommendations please?
I am guessing that this could get crazy intense, so I hope someone will have some patience with me. I am interested in methods for both XP and Vista.
Thanks in advance for the ideas/suggestions/explanations, etc...
#3
Posted 01 February 2008 - 01:51 PM
Yeah, you can set the NTFS file permissions to accomplish user protection (the security tab under file or folder properties), but any users who are admins of the computer will be able to access the files regardless, so if you want to keep users from accessing certain files and directories, make sure they don't have the rights to modify the security settings! (i.e. don't put the users you want to restrict in the "Administrators" group).
#5
Posted 01 February 2008 - 04:51 PM
I was also thinking about adding multiple log-ins to my main pc and that each user shouldn't see files from other users.
Thanks for getting me started. I heard about domains but have no clue about how to set one up and didn't know if that would be the best solution.
I hope I provided enough information. Thanks again.
#6
Posted 01 February 2008 - 08:32 PM
So, I can either place an account on each pc that I want to control shares on. Each pc will have the same number of accounts, this makes accessing easier. Or I can just add user permissions to a folder and then when trying to access from another pc, it will prompt me for a username and password.
Is that about correct?
I think it might be that I'm not sure how to add objects? Don't I just add a username? But then I don't get a prompt for password so I'm confused. I think the only way I see it working is if I make accounts on every computer that are the same and the password is already integrated for me. But what about the second scenario I mentioned above where I don't want to create all those matching accounts? Or will I have to?
#7
Posted 01 February 2008 - 08:58 PM
And then even if I do add a user and add that object. When I try to connect, I get can't access the folder. It doesn't even prompt me for a username and password.
Ugh, I am so confused now.
#8
Posted 01 February 2008 - 11:56 PM
Now, go click on "permissions". Add/remove users as necessary, and change their rights (view/modify/both) as you wish. Now click ok. When you type in the computer name across the network (i.e. \\computername\sharename) it should prompt for a username and password. These are accounts on the computer that has the shares on it. The user will see whatever shares they have permission to access.
As far as vista, no idea, but it might be similar. Perhaps?
Oh and for local folders: no way to set passwords, however, you can set permissions on folders so only certain user accounts can access them. After turning off simple file sharing as stated above, right-click a folder, choose properties. Go to the security tab. Edit permissions as needed. Click OK a couple times. Voila.
This post has been edited by Idontwantspam: 02 February 2008 - 12:00 AM
#9
Posted 02 February 2008 - 06:42 PM
Thanks so much!
By the way, what is happening when I add a user and then the Everyone, but then deny access to everyone? It seems like even permissible users get blocked from having access. Thanks again for further explanations.
#10
Posted 03 February 2008 - 01:23 AM
First of all, avoid "deny" permissions as much as possible, since they over-ride "allow" permissions.
Secondly, keep in mind that users authenticating across the network must have a password - passwordless network logons are not permitted.
You do NOT need to have the same user accounts on each PC, although you may if you want to. Any user account on the computer that has the shared files on it will do, as long as it has a password. As I said earlier, they will only see shares you have given them access to. Avoid using "everyone". Just remove it completely from the permissions list. Instead, if you want any logged in user to be able to see a certain share, use the "Authenticated Users" group, which is any user which has provided a valid username and password.
If somebody doesn't have an account, they could use the guest account. You will need to give the guest account a password of course for this to work. Also, remember that even if you disable the guest account in the user control panel, you it can still log in across the network.
If you have any more questions, feel free to post them!
#11
Posted 03 February 2008 - 09:03 AM
For Authenticated Users, do I just type Authenticated Users, and this will allow users that have an account on the local pc and logged into it to see the share from another account/user on this particular pc?
Guest accounts seem simple enough, turn it on, give it a password, now anyone can access that share as long as they use the right pass. But still being able to access even though the guest account is disabled is confusing. Will anyone still see the files?
"You do NOT need to have the same user accounts on each PC, although you may if you want to. Any user account on the computer that has the shared files on it will do, as long as it has a password. "
This is the really confusing part. I have tried to set up a share before to users that don't have an account, but I can't figure it out. Each time I create an object with a name like walter, it just doesn't seem to do anything as I can't seem to give it a password. It seems to only work if I actually create a user named walter and create a password for it.
Thanks so much.
#12
Posted 03 February 2008 - 04:16 PM
foolios, on Feb 3 2008, 08:03 AM, said:
No, not really. If you click "Add", then "Advanced" then "Find Now" it'll give you a list of all the accounts on the computer, and all the groups, including built-in groups, such as Authenticated Users. If you give permissions to "Authenticated Users" then anyone who has a user account on that PC can view it - when they type in the PC's computer name, they will get a username/password dialog. Any enabled user account on the computer may get in with their username and password. IF the account on the machine sharing the files and the account accessing the files have the same password and username, no prompt will be given, and it will log in as that user.
E.g: my name is "bob". I have two computers, computer1 and computer2. On computer1 i have an account called "Bob" with the password "123". On computer2 I have an account called "Bob" and the password "123". If while on computer2, I open \\computer1, i will see any shares on computer1 that Bob has access to. But if my friend "Joe" has an account on computer1 but is using the guest account on computer2, then he will be prompted for a username and password, which he can then enter and get files from computer1.
Quote
Well, there are two levels of "disabled". There is disabled and then there is cannot-log-in-locally. When you "disable" the guest account in the control panel, it is not really disabled, it just can't log in locally. It can still log in over the network. If it were actually disabled, which has to be done through lusrmgr.msc, then it can't log in over the network at all.
Quote
This is the really confusing part. I have tried to set up a share before to users that don't have an account, but I can't figure it out. Each time I create an object with a name like walter, it just doesn't seem to do anything as I can't seem to give it a password. It seems to only work if I actually create a user named walter and create a password for it.
Yes, there needs to actually be an account on the machine that is sharing. Share permissions are based of of windows accounts. So if you click add and type "walter" but there is no "walter" account, then you can't log in across the network as "walter" because there IS no "walter".
yah? If you want, PM me and I can maybe try to help you over remote assistance.
#13
Posted 04 February 2008 - 04:12 PM
I am curious about the line:
"But if my friend "Joe" has an account on computer1 but is using the guest account on computer2, then he will be prompted for a username and password, which he can then enter and get files from computer1."
Sooo, it would seem what I can do is create 10 users on just one pc, and then users from 9 other computers can access shares on that one pc without my having to create 10 user accounts on all 10 computers. So if Joe, Mike, Ted, Mark, Tim, etc. have an account on pc1. Then those people can access shares on pc1 from any of the other 9 pc's.
Now my question would also be, would they all have to be logged in as a guest, or could there be only one account on those 9 named George? What if George wasn't a valid user on pc1? What if he is?
#14
Posted 05 February 2008 - 12:07 AM
Anyhow, to answer your question: You can have whatever users on one computer, and from any other computer on the network, you can log in as any user on that other machine and access the 1st computer over the network as a user on the computer being accessed over the network. Get it?
They can log in to any account on the other PC and still access their own account on the sharing PC. If the account on the PC accessing the share has the same username and password as any account on the sharing PC, then it will assume that it should log in as that user.
At some point i'll make a diagrammy sort of thing to better explain it, but not right now.
On a sort-of side note: Vista. I have been experimenting with vista lately (
#15
Posted 05 February 2008 - 05:04 PM
Thanks so much!
#16
Posted 10 March 2008 - 02:36 AM
We have 3 PC's in our office running xp pro, they all are connected via ZXDSL 531B B/B modem and are sharing internet connection and few folders on each PC..(by simple file sharing)
If any guests visit and want to connect to net through his laptop he can hv access via GUEST account which i hv created in modem..
But my problem is he can also get access to all the shared folders between our 3 PC's..
My question is how can i restrict other persons/guests getting into our network..and by only allowing him to access internet
Plz. do explain it thoroughly..
I hope u can do..
thanks in adv..
Idontwantspam, on Feb 3 2008, 12:53 PM, said:
First of all, avoid "deny" permissions as much as possible, since they over-ride "allow" permissions.
Secondly, keep in mind that users authenticating across the network must have a password - passwordless network logons are not permitted.
You do NOT need to have the same user accounts on each PC, although you may if you want to. Any user account on the computer that has the shared files on it will do, as long as it has a password. As I said earlier, they will only see shares you have given them access to. Avoid using "everyone". Just remove it completely from the permissions list. Instead, if you want any logged in user to be able to see a certain share, use the "Authenticated Users" group, which is any user which has provided a valid username and password.
If somebody doesn't have an account, they could use the guest account. You will need to give the guest account a password of course for this to work. Also, remember that even if you disable the guest account in the user control panel, you it can still log in across the network.
If you have any more questions, feel free to post them!
This post has been edited by anish_annu: 10 March 2008 - 02:38 AM
#17
Posted 10 March 2008 - 10:31 PM
#18
Posted 11 March 2008 - 01:16 AM
I mean y will it ask for password, how to set up the pass..
and how to set up for sharing in such a way that other users can see the folders but wen they open it, it will ask for password..
One more thing if i disabled file sharing how can i see shared folders on any other computer becoz from network places, if i clik on workgroup computers it wont show anything..isn't so..
Idontwantspam, on Mar 11 2008, 10:01 AM, said:
#19
Posted 11 March 2008 - 11:00 PM
#20
Posted 21 March 2008 - 11:26 AM
Thanks
- ← Need Vista Aero Or Basic Theme For XP
- Windows XP
- MUST READ: Frequently Asked Problems with Their Solutions →



Help

Back to top









