- Timestamp:
- 02/01/2003 01:04:55 AM (21 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 97c2592
- Parents:
- d75b734
- Location:
- server
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
server/other/other.xml
rd75b734 r9905a3c 3 3 <title>Other Server Software</title> 4 4 5 &bind; 6 &cvsserver; 7 &dhcp; 8 &leafnode; 5 9 &openssh; 6 &cvsserver; 7 &bind; 8 &dhcp; 10 &openldap; 11 &samba; 9 12 &xinetd; 10 &leafnode;11 &samba;12 13 13 14 </chapter> -
server/other/samba/samba-config-exp.xml
rd75b734 r9905a3c 1 1 <sect2> 2 2 <title>Configuration command explanations</title> 3 <para><userinput> 4 cat > /etc/samba/smb.conf << "EOF" :</userinput> 3 <para><userinput>cat > /etc/samba/smb.conf << "EOF" :</userinput> 5 4 Create a default Samba configuration file. This configuration will 6 5 allow Samba to act as a Primary Domain Controller for a Microsoft … … 13 12 14 13 15 <para><userinput> 16 cat > /etc/rc.d/init.d/samba << "EOF" :</userinput> 14 <para><userinput>cat > /etc/rc.d/init.d/samba << "EOF" :</userinput> 17 15 Create the Samba boot script, used to start and stop Samba 18 16 automatically on machine startup and shutdown.</para> 19 17 20 <para><screen><userinput> 21 /usr/sbin/useradd -g 100 -d /dev/null -c \ 22 "Win2k Server" -s /bin/false win2kbox$ : 23 </userinput></screen> 18 <para><screen><userinput>/usr/sbin/useradd -g 100 -d /dev/null -c \ 19 "Win2k Server" -s /bin/false win2kbox$ :</userinput></screen> 24 20 This command creates a machine trust account, necessary only for 25 21 Windows 2000/NT servers to authenticate to our new PDC. Machine trust … … 30 26 Register the swat service to run on port 901.</para> 31 27 32 <para><userinput> 33 echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" >> 28 <para><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" >> 34 29 /etc/inetd.conf :</userinput> Instruct inetd where to find and how to 35 30 run swat.</para> 36 31 37 32 <para> 38 <userinput> 39 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba, etc. :</userinput> 33 <userinput>ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba, etc. :</userinput> 40 34 Create the Samba boot scripts, used to start and stop Samba 41 35 automatically on machine startup and shutdown.</para> -
server/other/samba/samba-config.xml
rd75b734 r9905a3c 9 9 documentation by pointing a web browser to:</para> 10 10 11 <para><screen><userinput> 12 file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770 13 .</userinput></screen></para> 11 <para><screen><userinput>file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770.</userinput></screen></para> 14 12 15 13 <sect3><title>Config files</title> 16 <para><userinput> 17 /etc/samba/smb.conf, /etc/rc.d/init.d/samba </userinput></para> 14 <para><userinput>/etc/samba/smb.conf, /etc/rc.d/init.d/samba </userinput></para> 18 15 19 16 <para>First we set up some directories needed by Samba:</para> 20 <para><screen><userinput> 21 mkdir /var/lib/samba && 17 <para><screen><userinput>mkdir /var/lib/samba && 22 18 mkdir /var/lib/samba/netlogon && 23 19 mkdir /var/lib/samba/ntprofile && 24 20 mkdir /var/lib/samba/profiles && 25 chmod -R 1777 /var/lib/samba 26 </userinput></screen></para> 21 chmod -R 1777 /var/lib/samba</userinput></screen></para> 27 22 28 23 <para>And the Samba configuration file: </para> 29 <para><screen><userinput> 30 cat > /etc/samba/smb.conf << "EOF" 24 <para><screen><userinput>cat > /etc/samba/smb.conf << "EOF" 31 25 [global] 32 26 netbios name = SAMBABOX … … 65 59 read only = no 66 60 public = no 67 EOF 68 </userinput></screen></para> 61 EOF </userinput></screen></para> 69 62 70 63 <para>Now add the machine trust account for WIN2KBOX:</para> … … 77 70 78 71 <para>Create the Samba boot script:</para> 79 <para><screen><userinput> 80 cat > /etc/rc.d/init.d/samba << "EOF" 72 <para><screen><userinput>cat > /etc/rc.d/init.d/samba << "EOF" 81 73 #!/bin/bash 82 74 # Begin $rc_base/init.d/samba … … 141 133 first in order to join WIN2KBOX to the DOMAIN01 domain: </para> 142 134 143 <para><screen><userinput> 144 smbpasswd -a root 145 </userinput></screen></para> 135 <para><screen><userinput>smbpasswd -a root</userinput></screen></para> 146 136 147 137 <para>After starting Samba and adding root to the Samba user list, the … … 163 153 9. Click OK in the reboot reminder dialog box. 164 154 10. Click OK to close the System Properties window. 165 11. Click Yes to reboot WIN2KBOX. 166 </userinput></screen></para></sect3> 155 11. Click Yes to reboot WIN2KBOX. </userinput></screen></para></sect3> 167 156 168 157 <sect3><title>Add a new user to the DOMAIN01 domain.</title> 169 158 <para>Before logging on to WIN2KBOX, we will create a new user with 170 159 the following commands:</para> 171 <para><screen><userinput> 172 useradd -m win2kuser01 && 160 <para><screen><userinput>useradd -m win2kuser01 && 173 161 passwd win2kuser01 && 174 smbpasswd -a win2kuser01 175 </userinput></screen></para></sect3> 162 smbpasswd -a win2kuser01</userinput></screen></para></sect3> 176 163 177 164 <sect3><title>Logging on to DOMAIN01.</title> 178 165 <para>Now we will log on the the domain as our newly created user as 179 166 follows:</para> 180 <para><screen><userinput> 181 1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box. 167 <para><screen><userinput>1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box. 182 168 2. Enter the win2kuser01 name and password. 183 3. Select DOMAIN01 from the Log on to: combination box and click OK. 184 </userinput></screen></para> 169 3. Select DOMAIN01 from the Log on to: combination box and click OK.</userinput></screen></para> 185 170 186 171 <para>Add the swat entry to <filename>/etc/services</filename>with the 187 172 following command: </para> 188 173 189 <para><screen><userinput> 190 echo "swat 901/tcp" >> /etc/services 191 </userinput></screen></para> 174 <para><screen><userinput>echo "swat 901/tcp" >> /etc/services</userinput></screen></para> 192 175 193 176 <para>If inetd is used, the following command will add the swat entry 194 177 to <filename>/etc/inetd.conf</filename>: </para> 195 <para><screen><userinput> 196 echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \ 197 >> /etc/inetd.conf 198 </userinput></screen></para> 178 <para><screen><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \ 179 >> /etc/inetd.conf</userinput></screen></para> 199 180 200 181 <para>If xinetd is used, the following command will add the swat entry 201 182 to <filename>/etc/xinetd.conf</filename>: </para> 202 <para><screen><userinput> 203 cat >> /etc/xinetd.conf << "EOF" 183 <para><screen><userinput>cat >> /etc/xinetd.conf << "EOF" 204 184 service swat 205 185 { … … 212 192 log_on_failure += USERID 213 193 } 214 EOF 215 </userinput></screen></para> 194 EOF</userinput></screen></para> 216 195 217 196 <para>The Samba Web Administration Tool, swat, can be launched with the 218 197 following command on SAMBABOX: </para> 219 <para><screen><userinput> 220 lynx http://localhost:901 221 </userinput></screen></para> 198 <para><screen><userinput>lynx http://localhost:901 </userinput></screen></para> 222 199 <note><para>Be sure inetd is running, and issue a killall -HUP inetd 223 200 before starting swat.</para></note> -
server/server.ent
rd75b734 r9905a3c 3 3 <!-- Mail server software --> 4 4 <!ENTITY server-mail SYSTEM "mail/mail.xml"> 5 <!ENTITY % postfix SYSTEM "mail/postfix/postfix.ent"> 6 <!ENTITY % qmail SYSTEM "mail/qmail/qmail.ent"> 7 <!ENTITY % sendmail SYSTEM "mail/sendmail/sendmail.ent"> 8 <!ENTITY % exim SYSTEM "mail/exim/exim.ent"> 9 <!ENTITY % qpopper SYSTEM "mail/qpopper/qpopper.ent"> 10 <!ENTITY % courier SYSTEM "mail/courier/courier.ent"> 5 <!ENTITY % postfix SYSTEM "mail/postfix/postfix.ent"> 6 <!ENTITY % qmail SYSTEM "mail/qmail/qmail.ent"> 7 <!ENTITY % sendmail SYSTEM "mail/sendmail/sendmail.ent"> 8 <!ENTITY % exim SYSTEM "mail/exim/exim.ent"> 9 <!ENTITY % qpopper SYSTEM "mail/qpopper/qpopper.ent"> 10 <!ENTITY % courier SYSTEM "mail/courier/courier.ent"> 11 %exim; 11 12 %postfix; 12 13 %qmail; 14 %qpopper; 13 15 %sendmail; 14 %exim;15 %qpopper;16 16 %courier; 17 17 18 18 <!-- Other server software --> 19 19 <!ENTITY server-other SYSTEM "other/other.xml"> 20 <!ENTITY % cvsserver SYSTEM "other/cvsserver/cvsserver.ent"> 21 <!ENTITY % openssh SYSTEM "other/openssh/openssh.ent"> 22 <!ENTITY % bind SYSTEM "other/bind/bind.ent"> 23 <!ENTITY % dhcp SYSTEM "other/dhcp/dhcp.ent"> 24 <!ENTITY % xinetd SYSTEM "other/xinetd/xinetd.ent"> 25 <!ENTITY % leafnode SYSTEM "other/leafnode/leafnode.ent"> 26 <!ENTITY % samba SYSTEM "other/samba/samba.ent"> 20 <!ENTITY % cvsserver SYSTEM "other/cvsserver/cvsserver.ent"> 21 <!ENTITY % openssh SYSTEM "other/openssh/openssh.ent"> 22 <!ENTITY % bind SYSTEM "other/bind/bind.ent"> 23 <!ENTITY % dhcp SYSTEM "other/dhcp/dhcp.ent"> 24 <!ENTITY % xinetd SYSTEM "other/xinetd/xinetd.ent"> 25 <!ENTITY % leafnode SYSTEM "other/leafnode/leafnode.ent"> 26 <!ENTITY % samba SYSTEM "other/samba/samba.ent"> 27 <!ENTITY % openldap SYSTEM "other/openldap/openldap.ent"> 27 28 29 %bind; 30 %cvsserver; 31 %dhcp; 32 %leafnode; 33 %openldap; 28 34 %openssh; 29 %cvsserver; 30 %bind; 31 %dhcp; 35 %samba; 32 36 %xinetd; 33 %leafnode;34 %samba;
Note:
See TracChangeset
for help on using the changeset viewer.