summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/howto/Group-Mapping.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/howto/Group-Mapping.xml b/docs/howto/Group-Mapping.xml
index c2b3682b93..475f7f6289 100644
--- a/docs/howto/Group-Mapping.xml
+++ b/docs/howto/Group-Mapping.xml
@@ -490,11 +490,11 @@ Domain Guests (S-1-5-21-2547222302-1596225915-2414751004-514) -> domguest
# Add the group using normal system groupadd tool.
groupadd smbtmpgrp00
-thegid=`cat /etc/group | grep smbtmpgrp00 | cut -d ":" -f3`
+thegid=`cat /etc/group | grep ^smbtmpgrp00 | cut -d ":" -f3`
# Now change the name to what we want for the MS Windows networking end
cp /etc/group /etc/group.bak
-cat /etc/group.bak | sed "s/smbtmpgrp00/$1/g" > /etc/group
+cat /etc/group.bak | sed "s/^smbtmpgrp00/$1/g" > /etc/group
# Now return the GID as would normally happen.
echo $thegid