summaryrefslogtreecommitdiffstats
path: root/packaging/Debian/debian-unstable/patches/documentation.patch
blob: 922b93f990087421d6a2d5dd8923e4b35bf02dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- samba_3_0/docs/manpages/swat.8.orig	2003-06-06 16:16:24.000000000 -0400
+++ samba_3_0/docs/manpages/swat.8	2003-06-06 16:25:13.000000000 -0400
@@ -91,6 +91,13 @@
 .SH "INSTALLATION"
 
 .PP
+\fBDebian-specific Note\fR: all these steps have already been done for
+you. However, by default, swat is not enabled. This has been done for
+security reasons. To enable swat you need to edit /etc/inetd.conf,
+uncomment the swat entry (usually at the end of the file), and then
+restart inetd.
+
+.PP
 Swat is included as binary package with most distributions\&. The package manager in this case takes care of the installation and configuration\&. This section is only for those who have compiled swat from scratch\&.
 
 .PP
@@ -98,15 +105,15 @@
 
 .TP 3
 \(bu
-/usr/local/samba/bin/swat
+/usr/sbin/swat
 
 .TP
 \(bu
-/usr/local/samba/swat/images/*
+/usr/share/samba/swat/images/*
 
 .TP
 \(bu
-/usr/local/samba/swat/help/*
+/usr/share/samba/swat/help/*
 
 .LP
 
@@ -116,7 +123,7 @@
 You need to edit your \fI/etc/inetd\&.conf \fR and \fI/etc/services\fR to enable SWAT to be launched via \fBinetd\fR\&.
 
 .PP
-In \fI/etc/services\fR you need to add a line like this:
+In \fI/etc/services\fR you need to add a line like this (not needed for Debian):
 
 .PP
 \fBswat 901/tcp\fR
@@ -128,10 +135,10 @@
 the choice of port number isn't really important except that it should be less than 1024 and not currently used (using a number above 1024 presents an obscure security hole depending on the implementation details of your\fBinetd\fR daemon)\&.
 
 .PP
-In \fI/etc/inetd\&.conf\fR you should add a line like this:
+In \fI/etc/inetd\&.conf\fR you should add a line like this (not needed for Debian since the maintainer scripts do it. You need to uncomment the line, though, because it is added commented out for security reasons):
 
 .PP
-\fBswat stream tcp nowait\&.400 root /usr/local/samba/bin/swat swat\fR
+\fBswat stream tcp nowait.400 root /usr/sbin/swat swat\fR
 
 .PP
 One you have edited \fI/etc/services\fR and \fI/etc/inetd\&.conf\fR you need to send a HUP signal to inetd\&. To do this use \fBkill \-1 PID \fR where PID is the process ID of the inetd daemon\&.
@@ -157,8 +164,8 @@
 
 
 .TP
-\fI/usr/local/samba/lib/smb\&.conf\fR
-This is the default location of the \fBsmb\&.conf\fR(5) server configuration file that swat edits\&. Other common places that systems install this file are \fI /usr/samba/lib/smb\&.conf\fR and \fI/etc/smb\&.conf \fR\&. This file describes all the services the server is to make available to clients\&.
+\fI/etc/samba/smb\&.conf\fR
+This is the default location of the \fBsmb.conf\fR(5) server configuration file that swat edits\&. This file describes all the services the server is to make available to clients\&.
 
 
 .SH "WARNINGS"