Hi I'm trying to configure samba, and am trying to groupmap some Domain Groups with Unix groups.
I created a file called Groups.sh, when running, I get the message:
My Groups.sh file looks like:
Can someone tell me what's missing?
How do I fix this?
I created a file called Groups.sh, when running, I get the message:
Code:
line 8: net: command not found
line 9: net: command not found
line 10: net: command not found
line 13: net: command not found
line 14: net: command not found
My Groups.sh file looks like:
Code:
# Create UNIX groups
groupadd g_knitting
groupadd g_drawing
# Map Windows Domain Groups to UNIX groups
net groupmap modify ntgroup="Domain Admins" unixgroup=root
net groupmap modify ntgroup="Domain Users" unixgroup=users
net groupmap modify ntgroup="Domain Guests" unixgroup=nobody
# Add Functional Domain Groups
net groupmap add ntgroup="Knitting Department" unixgroup=g_knitting type=d
net groupmap add ntgroup="Drawing Department" unixgroup=g_drawing type=d
Can someone tell me what's missing?
How do I fix this?