summaryrefslogtreecommitdiff
path: root/packaging/SuSE/7.1/samba-2.2.0-alpha0.dif
blob: 75bfdf18c664dc1b81993baa8bf035268eed07a1 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
--- lmhosts
+++ lmhosts	2000/08/28 07:32:33
@@ -0,0 +1,8 @@
+# This file provides the same function that the 
+# lmhosts file does for Windows.
+# It provides another way to map netbios names to ip addresses.
+# See the section on 'name resolve order' in the manual page to
+# smb.conf for more information.
+
+# Sample entry:
+# 192.168.1.1 samba
--- mount.smbfs
+++ mount.smbfs	2000/08/28 07:32:55
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.  All rights reserved.
+#
+# Author: Carsten Hoeger <choeger@suse.de>
+#
+# /sbin/mount.smbfs
+#
+# I'm called by the mount-command and smbmount want's to get
+# called by me, so lets do it.
+#
+# P.S.: This is a very very raw solution and I don't know, if this
+# is intentionally.
+smbmount "$@"
--- rc
+++ rc	2000/08/28 07:32:33
@@ -0,0 +1,53 @@
+#! /bin/sh
+# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
+# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
+#
+# Author: Bastian Epting, StarDivision GmbH <be@stardivision.de>
+#      Florian La Roche, <florian@suse.de>
+#      Volker Lendecke, <vl@suse.de>
+#
+
+. /etc/rc.config
+
+# Determine the base and follow a runlevel link name.
+base=${0##*/}
+link=${base#*[SK][0-9][0-9]}
+
+# Force execution if not called by a runlevel directory.
+test $link = $base && START_SMB=yes
+test "$START_SMB" = "yes" || exit 0
+
+# The echo return value for success (defined in /etc/rc.config).
+return=$rc_done
+case "$1" in
+    start)
+        echo -n "Starting SMB services:"
+        startproc /usr/sbin/nmbd -D || return=$rc_failed
+        startproc /usr/sbin/smbd -D || return=$rc_failed
+        echo -e "$return"
+        ;;
+    stop)
+        echo -n "Shutting down SMB services:"
+        killproc -TERM /usr/sbin/nmbd || return=$rc_failed
+        killproc -TERM /usr/sbin/smbd || return=$rc_failed
+        echo -e "$return"
+        ;;
+    restart|reload)
+	echo -n "Reloading SMB services:"
+	killproc -HUP /usr/sbin/nmbd || return=$rc_failed
+	killproc -HUP /usr/sbin/smbd || return=$rc_failed
+	echo -e "$return"
+	;;
+    status)
+	echo -n "Checking for service smb: "
+	checkproc /usr/sbin/nmbd && echo -n "OK " || echo -n "No process "
+	checkproc /usr/sbin/smbd && echo "OK " || echo "No process"
+	;;
+    *)
+        echo "Usage: $0 {start|stop|restart|reload|status}"
+        exit 1
+esac
+
+# Inform the caller not only verbosely and set an exit status.
+test "$return" = "$rc_done" || exit 1
+exit 0
--- rc.config.samba
+++ rc.config.samba	2000/08/28 07:32:33
@@ -0,0 +1,5 @@
+#
+# start samba? ("yes" or "no")
+# Windows 95 / NT  -  File- and Printservices
+#
+START_SMB="no"
--- smb.conf
+++ smb.conf	2000/08/28 07:32:33
@@ -0,0 +1,80 @@
+;
+; /etc/smb.conf
+;
+; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
+;
+[global]
+   workgroup = arbeitsgruppe
+   guest account = nobody
+   keep alive = 30
+   os level = 2
+   kernel oplocks = false
+   security = user
+
+; Uncomment the following, if you want to use an existing
+; NT-Server to authenticate users, but don't forget that
+; you also have to create them locally!!!
+;  security = server
+;  password server = 192.168.1.10
+;  encrypt passwords = yes
+
+   printing = bsd
+   printcap name = /etc/printcap
+   load printers = yes
+
+   socket options = TCP_NODELAY
+
+   map to guest = Bad User
+
+; Uncomment this, if you want to integrate your server
+; into an existing net e.g. with NT-WS to prevent nettraffic
+;  local master = no   
+
+; Please uncomment the following entry and replace the 
+; ip number and netmask with the correct numbers for
+; your ethernet interface.
+;   interfaces = 192.168.1.1/255.255.255.0
+   
+; If you want Samba to act as a wins server, please set
+; 'wins support = yes'
+   wins support = no
+
+; If you want Samba to use an existing wins server,
+; please uncomment the following line and replace
+; the dummy with the wins server's ip number.
+;   wins server = 192.168.1.1
+
+; Do you wan't samba to act as a logon-server for
+; your windows 95/98 clients, so uncomment the
+; following:
+;   logon script =%U.bat
+;   domain logons = yes
+;   domain master = yes
+; [netlogon]
+;   path = /netlogon
+
+
+[homes]
+   comment = Heimatverzeichnis
+   browseable = no
+   read only = no
+   create mode = 0750
+
+; The following share gives all users access to the Server's CD drive,
+; assuming it is mounted under /cd. To enable this share, please remove
+; the semicolons before the lines
+;
+; [cdrom]
+;   comment = Linux CD-ROM
+;   path = /cdrom
+;   read only = yes
+;   locking = no
+
+[printers]
+   comment = All Printers
+   browseable = no
+   printable = yes
+   public = no
+   read only = yes
+   create mode = 0700
+   directory = /tmp
--- smbfs
+++ smbfs	2000/08/28 07:32:33
@@ -0,0 +1,40 @@
+#! /bin/bash
+# Copyright (c) 1996 SuSE GmbH Nuernberg, Germany.  All rights reserved.
+#
+# Author: Thomas Fehr <fehr@suse.de>, 1999
+#
+# /sbin/init.d/smbfs
+#
+
+smbfs=no
+if [ `cat /proc/mounts | grep " smbfs " | wc -l` -gt 0 ]
+then
+    smbfs=yes
+fi
+
+return=$rc_done
+case "$1" in
+    start|reload)
+	;;
+    stop)
+	if [ "$smbfs" = "yes" ]
+	then
+	    echo -n "Remove SMB File System"
+	    #
+	    # Unmount in background because during long timeouts
+	    #
+	    umount -at smbfs &
+	    sleep 2
+	    echo -e "$return"
+	fi
+	;;
+    restart)
+	$0 stop && $0 start || return=$rc_failed
+	;;
+    status)
+	;;
+    *)
+	echo "Usage: $0 {start|stop|status|reload|restart}"
+	exit 1
+esac
+exit 0
--- smbpasswd
+++ smbpasswd	2000/08/28 07:32:33
@@ -0,0 +1,3 @@
+# Sample smbpasswd file.
+# To use this, set 'encrypt passwords = yes' in the [global]-section
+# of /etc/smb.conf