diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-04-27 15:19:28 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:45:49 -0500 |
commit | 95977bab8ecb65b7ff7adb772b0563012f53b662 (patch) | |
tree | 9f25a07145a261cf84ba353d7d151f301bdf079f /docs | |
parent | f036e19b96487d73365c0de3950c205794795da7 (diff) | |
download | samba-95977bab8ecb65b7ff7adb772b0563012f53b662.tar.gz samba-95977bab8ecb65b7ff7adb772b0563012f53b662.tar.bz2 samba-95977bab8ecb65b7ff7adb772b0563012f53b662.zip |
Fix add group script (don't break when users with specified groupname are
mentioned in /etc/groups)
(This used to be commit a6b7d00a82693dcfc81c8dfb0b5800f3aaac49a2)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/howto/Group-Mapping.xml | 4 |
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 |