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