Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running Windows Server 2008 R2 in a workgroup, not a domain, and I want to create a local account that is only used for allowing other computers in the same workgroup to access file shares on that server.

When clients connect they will be prompted for a username/password (hopefully) and this account would serve as a way to allow them access.

I do not want this account to have a profile, or be used to actually log into the server itself. I only need it as a way to authenticate users for shared folders.

Can this be done? If not, what is the recommended approach for this?

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

Sure it can be done. When you've set up the local user account on the server add the user account to the "Deny log on locally" and "Deny log on through Terminal Services" user rights assignment. That will prevent anyone from using this user account to log on to the server locally or via TS/RDS but will allow them to access the share with this uer.

share|improve this answer
    
How do I do this? –  Robert Dailey Oct 20 '11 at 17:36
    
Umm... 1. Create the user. 2. Add the user to the user rights assignments I listed above. 3. Create share and set apporpriate Share and NTFS permissions. 4. Access share from workstation. 6. Done. –  joeqwerty Oct 20 '11 at 17:39
    
What I mean is, how do I do user rights assignments? Is this done in Computer Management? –  Robert Dailey Oct 20 '11 at 18:48
    
It's done in the Local Security Policy mmc, which is in Administrative Tools. –  joeqwerty Oct 20 '11 at 19:15
add comment

You should be able to accomplish this by creating the local account, giving it share and NTFS rights on the file shares. Then use secedit to edit the local security policy. You want to use Local Policies> User Rights Assignment> Deny log on locally. Add the account to this setting.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.