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 am trying to get samba working with groups. I am using CentOS.

#sswords = yes
lanman auth = no
null passwords = no
hosts allow = 129.130.155.
netbios name = a server
server string = base PHP server
[team$]
 path= /var/www
 writable = yes
 valid users = @team
 force group = @team

I have created a few users in linux, and added them to a group called team using

groupadd -a -g username.

I the attempted to login and got a NT_STATUS_NO_SUCH_GROUP. If I comment out the two last lines in the config it works, but I wish to have group ownership and prefer just to be able to add users to a group in Linux and for it to work with the samba.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Change the last line to

force group = team

You are trying to force the group with the content of the group itself (the members of the group) instead forcing the group name.

share|improve this answer

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.