From 9b812456e69594f0ba23a4aebdaae68001d110de Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Wed, 20 Oct 2004 05:58:37 +0000 Subject: Updates and fixes. (This used to be commit 6c66bd83e6ed9ebba14029caad81bcef29465b09) --- docs/Samba-Guide/Chap03-TheSmallOffice.xml | 70 ++++++++++---------------- docs/Samba-Guide/Chap04-SecureOfficeServer.xml | 10 ++-- 2 files changed, 31 insertions(+), 49 deletions(-) (limited to 'docs/Samba-Guide') diff --git a/docs/Samba-Guide/Chap03-TheSmallOffice.xml b/docs/Samba-Guide/Chap03-TheSmallOffice.xml index afe5200ca9..b3350927a9 100644 --- a/docs/Samba-Guide/Chap03-TheSmallOffice.xml +++ b/docs/Samba-Guide/Chap03-TheSmallOffice.xml @@ -430,23 +430,13 @@ net groupmap modify ntgroup="Domain Guests" unixgroup=nobody # Add Functional Domain Groups net groupmap add ntgroup="Accounts Dept" unixgroup=acctsdep type=d net groupmap add ntgroup="Financial Services" unixgroup=finsrvcs type=d - -# Map Windows NT machine local groups to local UNIX groups -net groupmap modify ntgroup="Administrators" unixgroup=sys -net groupmap modify ntgroup="Users" unixgroup=public -net groupmap modify ntgroup="Guests" unixgroup=nobody -net groupmap modify ntgroup="System Operators" unixgroup=daemon -net groupmap modify ntgroup="Account Operators" unixgroup=wheel -net groupmap modify ntgroup="Backup Operators" unixgroup=bin -net groupmap modify ntgroup="Print Operators" unixgroup=lp -net groupmap modify ntgroup="Replicators" unixgroup=kmem -net groupmap modify ntgroup="Power Users" unixgroup=ntadmin &rootprompt; chmod 755 initGrps.sh -&rootprompt; /etc/samba # ./initGrps.sh +&rootprompt; cd /etc/samba +&rootprompt; ./initGrps.sh Updated mapping entry for Domain Admins Updated mapping entry for Domain Users Updated mapping entry for Domain Guests @@ -454,31 +444,23 @@ No rid or sid specified, choosing algorithmic mapping Successfully added group Accounts Dept to the mapping db No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Guests to the mapping db -Updated mapping entry for Administrators -Updated mapping entry for Users -Updated mapping entry for Guests -Updated mapping entry for System Operators -Updated mapping entry for Account Operators -Updated mapping entry for Backup Operators -Updated mapping entry for Print Operators -Updated mapping entry for Replicators -Updated mapping entry for Power Users - -&rootprompt; /etc/samba # net groupmap list | sort -Account Operators (S-1-5-32-548) -> wheel + +&rootprompt; cd /etc/samba +&rootprompt; net groupmap list | sort +Account Operators (S-1-5-32-548) -> -1 Accounts Dept (S-1-5-21-194350-25496802-3394589-2003) -> acctsdep -Administrators (S-1-5-32-544) -> sys -Backup Operators (S-1-5-32-551) -> bin +Administrators (S-1-5-32-544) -> -1 +Backup Operators (S-1-5-32-551) -> -1 Domain Admins (S-1-5-21-194350-25496802-3394589-512) -> root Domain Guests (S-1-5-21-194350-25496802-3394589-514) -> nobody Domain Users (S-1-5-21-194350-25496802-3394589-513) -> users Financial Services (S-1-5-21-194350-25496802-3394589-2005) -> finsrvcs -Guests (S-1-5-32-546) -> nobody -Power Users (S-1-5-32-547) -> ntadmin -Print Operators (S-1-5-32-550) -> lp -Replicators (S-1-5-32-552) -> kmem -System Operators (S-1-5-32-549) -> daemon -Users (S-1-5-32-545) -> public +Guests (S-1-5-32-546) -> -1 +Power Users (S-1-5-32-547) -> -1 +Print Operators (S-1-5-32-550) -> -1 +Replicators (S-1-5-32-552) -> -1 +System Operators (S-1-5-32-549) -> -1 +Users (S-1-5-32-545) -> -1 @@ -677,13 +659,13 @@ hosts: files wins name resolve orderwins bcast hosts printcap nameCUPS show add printer wizardNo -add user script/usr/sbin/useradd -m %u -delete user script/usr/sbin/userdel -r %u -add group script/usr/sbin/groupadd %g -delete group script/usr/sbin/groupdel %g -add user to group script/usr/sbin/usermod -G %g %u +add user script/usr/sbin/useradd -m '%u' +delete user script/usr/sbin/userdel -r '%u' +add group script/usr/sbin/groupadd '%g' +delete group script/usr/sbin/groupdel '%g' +add user to group script/usr/sbin/usermod -G '%g' '%u' add machine script/usr/sbin/useradd \ --s /bin/false -d /dev/null %u +-s /bin/false -d /dev/null '%u' logon scriptscripts\login.bat logon path logon driveX: @@ -763,13 +745,13 @@ Loaded services file OK. name resolve order = wins bcast hosts printcap name = CUPS show add printer wizard = No - add user script = /usr/sbin/useradd -m %u - delete user script = /usr/sbin/userdel -r %u - add group script = /usr/sbin/groupadd %g - delete group script = /usr/sbin/groupdel %g - add user to group script = /usr/sbin/usermod -G %g %u + add user script = /usr/sbin/useradd -m '%u' + delete user script = /usr/sbin/userdel -r '%u' + add group script = /usr/sbin/groupadd '%g' + delete group script = /usr/sbin/groupdel '%g' + add user to group script = /usr/sbin/usermod -G '%g' '%u' add machine script = /usr/sbin/useradd - -s /bin/false -d /dev/null %u + -s /bin/false -d /dev/null '%u' logon script = scripts\logon.bat logon path = logon drive = X: diff --git a/docs/Samba-Guide/Chap04-SecureOfficeServer.xml b/docs/Samba-Guide/Chap04-SecureOfficeServer.xml index 6d52053fe0..13a264a0dc 100644 --- a/docs/Samba-Guide/Chap04-SecureOfficeServer.xml +++ b/docs/Samba-Guide/Chap04-SecureOfficeServer.xml @@ -890,11 +890,11 @@ echo -e "\nNAT firewall done.\n" time serverYes printcap nameCUPS show add printer wizardNo -add user script/usr/sbin/useradd -m %u -delete user script/usr/sbin/userdel -r %u -add group script/usr/sbin/groupadd %g -delete group script/usr/sbin/groupdel %g -add user to group script/usr/sbin/usermod -G %g %u +add user script/usr/sbin/useradd -m '%u' +delete user script/usr/sbin/userdel -r '%u' +add group script/usr/sbin/groupadd '%g' +delete group script/usr/sbin/groupdel '%g' +add user to group script/usr/sbin/usermod -G '%g' '%u' add machine script/usr/sbin/useradd -s /bin/false -d /dev/null %u shutdown script/var/lib/samba/scripts/shutdown.sh -- cgit