2 +++ lmhosts 2000/08/28 07:32:33
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.
13 +++ mount.smbfs 2000/08/28 07:32:55
17 +# Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. All rights reserved.
19 +# Author: Carsten Hoeger <choeger@suse.de>
23 +# I'm called by the mount-command and smbmount want's to get
24 +# called by me, so lets do it.
26 +# P.S.: This is a very very raw solution and I don't know, if this
30 +++ rc 2000/08/28 07:32:33
33 +# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
34 +# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
36 +# Author: Bastian Epting, StarDivision GmbH <be@stardivision.de>
37 +# Florian La Roche, <florian@suse.de>
38 +# Volker Lendecke, <vl@suse.de>
43 +# Determine the base and follow a runlevel link name.
45 +link=${base#*[SK][0-9][0-9]}
47 +# Force execution if not called by a runlevel directory.
48 +test $link = $base && START_SMB=yes
49 +test "$START_SMB" = "yes" || exit 0
51 +# The echo return value for success (defined in /etc/rc.config).
55 + echo -n "Starting SMB services:"
56 + startproc /usr/sbin/nmbd -D || return=$rc_failed
57 + startproc /usr/sbin/smbd -D || return=$rc_failed
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
67 + echo -n "Reloading SMB services:"
68 + killproc -HUP /usr/sbin/nmbd || return=$rc_failed
69 + killproc -HUP /usr/sbin/smbd || return=$rc_failed
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"
78 + echo "Usage: $0 {start|stop|restart|reload|status}"
82 +# Inform the caller not only verbosely and set an exit status.
83 +test "$return" = "$rc_done" || exit 1
86 +++ rc.config.samba 2000/08/28 07:32:33
89 +# start samba? ("yes" or "no")
90 +# Windows 95 / NT - File- and Printservices
94 +++ smb.conf 2000/08/28 07:32:33
99 +; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
102 + workgroup = arbeitsgruppe
103 + guest account = nobody
106 + kernel oplocks = false
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!!!
113 +; password server = 192.168.1.10
114 +; encrypt passwords = yes
117 + printcap name = /etc/printcap
118 + load printers = yes
120 + socket options = TCP_NODELAY
122 + map to guest = Bad User
124 +; Uncomment this, if you want to integrate your server
125 +; into an existing net e.g. with NT-WS to prevent nettraffic
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
133 +; If you want Samba to act as a wins server, please set
134 +; 'wins support = yes'
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
142 +; Do you wan't samba to act as a logon-server for
143 +; your windows 95/98 clients, so uncomment the
145 +; logon script =%U.bat
146 +; domain logons = yes
147 +; domain master = yes
153 + comment = Heimatverzeichnis
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
163 +; comment = Linux CD-ROM
169 + comment = All Printers
177 +++ smbfs 2000/08/28 07:32:33
180 +# Copyright (c) 1996 SuSE GmbH Nuernberg, Germany. All rights reserved.
182 +# Author: Thomas Fehr <fehr@suse.de>, 1999
184 +# /sbin/init.d/smbfs
188 +if [ `cat /proc/mounts | grep " smbfs " | wc -l` -gt 0 ]
198 + if [ "$smbfs" = "yes" ]
200 + echo -n "Remove SMB File System"
202 + # Unmount in background because during long timeouts
210 + $0 stop && $0 start || return=$rc_failed
215 + echo "Usage: $0 {start|stop|status|reload|restart}"
220 +++ smbpasswd 2000/08/28 07:32:33
222 +# Sample smbpasswd file.
223 +# To use this, set 'encrypt passwords = yes' in the [global]-section