Changeset 377584f for server/other/samba/samba-config.xml
- Timestamp:
- 09/23/2003 08:34:30 PM (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, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 95079c36
- Parents:
- 178f7b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/other/samba/samba-config.xml
r178f7b4 r377584f 9 9 documentation by pointing a web browser to:</para> 10 10 11 < para><screen><userinput>file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770.</userinput></screen></para>11 <screen><userinput><command>file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770.</command></userinput></screen> 12 12 13 13 <sect3><title>Config files</title> … … 16 16 17 17 <para>First we set up some directories needed by Samba:</para> 18 < para><screen><userinput>mkdir /var/lib/samba &&18 <screen><userinput><command>mkdir /var/lib/samba && 19 19 mkdir /var/lib/samba/netlogon && 20 20 mkdir /var/lib/samba/ntprofile && 21 21 mkdir /var/lib/samba/profiles && 22 chmod -R 1777 /var/lib/samba</ userinput></screen></para>22 chmod -R 1777 /var/lib/samba</command></userinput></screen> 23 23 24 24 <para>And the Samba configuration file: </para> 25 < para><screen><userinput>cat > /etc/samba/smb.conf << "EOF"</userinput>25 <screen><userinput><command>cat > /etc/samba/smb.conf << "EOF"</command> 26 26 [global] 27 27 netbios name = SAMBABOX … … 60 60 read only = no 61 61 public = no 62 < userinput>EOF </userinput></screen></para>62 <command>EOF</command></userinput></screen> 63 63 64 64 <para>Now add the machine trust account for WIN2KBOX:</para> 65 < para><screen><userinput>/usr/sbin/useradd -g 100 -d /dev/null -c \65 <screen><userinput><command>/usr/sbin/useradd -g 100 -d /dev/null -c \ 66 66 "machine nickname" -s /bin/false win2kbox$ && 67 67 passwd -l win2kbox$ && 68 smbpasswd -a -m win2kbox</ userinput></screen></para>68 smbpasswd -a -m win2kbox</command></userinput></screen> 69 69 70 70 <para>Create the Samba boot script:</para> 71 < para><screen><userinput>cat > /etc/rc.d/init.d/samba << "EOF"</userinput>71 <screen><userinput><command>cat > /etc/rc.d/init.d/samba << "EOF"</command> 72 72 #!/bin/bash 73 73 # Begin $rc_base/init.d/samba … … 110 110 esac 111 111 # End $rc_base/init.d/samba 112 < userinput>EOF</userinput></screen></para>112 <command>EOF</command></userinput></screen> 113 113 <para>Add the run level symlinks:</para> 114 < para><screen><userinput>chmod 754 /etc/rc.d/init.d/samba &&114 <screen><userinput>chmod 754 /etc/rc.d/init.d/samba && 115 115 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K48samba && 116 116 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc1.d/K48samba && … … 119 119 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc4.d/S24samba && 120 120 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc5.d/S24samba && 121 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K48samba</userinput></screen> </para>121 ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K48samba</userinput></screen> 122 122 123 123 <para>Now, we'll use our new boot script to start Samba: </para> 124 < para><screen><userinput>/etc/rc.d/init.d/samba start</userinput></screen></para>124 <screen><userinput><command>/etc/rc.d/init.d/samba start</command></userinput></screen> 125 125 <para>We have to add the SAMBABOX root account to the Samba user list 126 126 first in order to join WIN2KBOX to the DOMAIN01 domain: </para> 127 127 128 < para><screen><userinput>smbpasswd -a root</userinput></screen></para>128 <screen><userinput><command>smbpasswd -a root</command></userinput></screen> 129 129 130 130 <para>After starting Samba and adding root to the Samba user list, the 131 131 first machine we'll join to DOMAIN01 will be WIN2KBOX, the Windows 132 132 2000 Server box we created the machine trust account for. On 133 WIN2KBOX:</para><para><screen><userinput>1. Right click on My Computer. 133 WIN2KBOX:</para> 134 <screen><userinput>1. Right click on My Computer. 134 135 2. Click on Properties. 135 136 3. Click on the Network Identification notebook tab. … … 144 145 9. Click OK in the reboot reminder dialog box. 145 146 10. Click OK to close the System Properties window. 146 11. Click Yes to reboot WIN2KBOX.</userinput></screen></ para></sect3>147 11. Click Yes to reboot WIN2KBOX.</userinput></screen></sect3> 147 148 148 149 <sect3><title>Add a new user to the DOMAIN01 domain.</title> 149 150 <para>Before logging on to WIN2KBOX, we will create a new user with 150 151 the following commands:</para> 151 < para><screen><userinput>useradd -m win2kuser01 &&152 <screen><userinput><command>useradd -m win2kuser01 && 152 153 passwd win2kuser01 && 153 smbpasswd -a win2kuser01</ userinput></screen></para></sect3>154 smbpasswd -a win2kuser01</command></userinput></screen></sect3> 154 155 155 156 <sect3><title>Logging on to DOMAIN01.</title> 156 157 <para>Now we will log on the domain as our newly created user as 157 158 follows:</para> 158 < para><screen><userinput>1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box.159 <screen><userinput>1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box. 159 160 2. Enter the win2kuser01 name and password. 160 3. Select DOMAIN01 from the Log on to: combination box and click OK.</userinput></screen> </para>161 3. Select DOMAIN01 from the Log on to: combination box and click OK.</userinput></screen> 161 162 162 163 <para>Add the swat entry to <filename>/etc/services</filename>with the 163 164 following command: </para> 164 165 165 < para><screen><userinput>echo "swat 901/tcp" >> /etc/services</userinput></screen></para>166 <screen><userinput><command>echo "swat 901/tcp" >> /etc/services</command></userinput></screen> 166 167 167 <para>If inetd is used, the following command will add the swat entry168 to <filename>/etc/inetd.conf</filename>: </para>169 < para><screen><userinput>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \170 >> /etc/inetd.conf</ userinput></screen></para>168 <para>If <command>inetd</command> is used, the following command will add the 169 swat entry to <filename>/etc/inetd.conf</filename>: </para> 170 <screen><userinput><command>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \ 171 >> /etc/inetd.conf</command></userinput></screen> 171 172 172 173 <para>If xinetd is used, the following command will add the swat entry 173 174 to <filename>/etc/xinetd.conf</filename>: </para> 174 < para><screen><userinput>cat >> /etc/xinetd.conf << "EOF"</userinput>175 <screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command> 175 176 service swat 176 177 { … … 183 184 log_on_failure += USERID 184 185 } 185 < userinput>EOF</userinput></screen></para>186 <command>EOF</command></userinput></screen> 186 187 187 188 <para>The Samba Web Administration Tool, swat, can be launched with the 188 189 following command on SAMBABOX: </para> 189 < para><screen><userinput>lynx http://localhost:901 </userinput></screen></para>190 <screen><userinput><command>lynx http://localhost:901</command></userinput></screen> 190 191 <note><para>Be sure inetd is running, and issue a killall -HUP inetd 191 192 before starting swat.</para></note>
Note:
See TracChangeset
for help on using the changeset viewer.