Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In smb.conf I have the line

valid users = @Staff @Directors

Is this a valid syntax to add two groups to the valid users line? It does not seem to work right on our xp pro clients.

If not which of the following is the proper way (if any) to make two groups valid users of this network drive?

Which is proper for windows clients?

valid users = +Staff +Directors

Or do I need to use the &

valid users = &Staff &Directors

Or some combo of the two?

valid users = &+Staff &+Directors
valid users = +&Staff +&Directors
share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

Just add comma ',' if you want multiple valid users. See line that I used below.

valid users = @group1, @group2
share|improve this answer
    
This is a way quicker solution to my problem... I found the workaround almost a year before you responded. –  skids89 Mar 2 at 1:11
add comment

I wound up adding the users from the most restricted group Directors to the Staff and Interns group as well as their original group. Then I added the users from the Staff group to the Interns group as well as their original group.

The line I used was a simple

valid users = @group_name
share|improve this answer
    
you should accept your answer as soon as it is possible to mark the question as solved. –  Baarn Jun 19 '12 at 21:47
    
Thanks I clicked it but my browser must have hung up! –  skids89 Jun 20 '12 at 19:47
add comment

On Samba4 with internal dns:

valid users = +"cmpc.leg\adm" 

also works.

Where

cmpc.leg=realm  

and

adm=group
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.