summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>1997-08-19 09:50:31 +0000
committerJohn Terpstra <jht@samba.org>1997-08-19 09:50:31 +0000
commitdaa148c38467caea6f0c6dfe59a5f0ba6797e4bb (patch)
tree8cb293214e509d6ba1a4594391e58acaf68e6603 /examples
parent71ddce78f3cba986bd5ab1bffa48726b8f012d59 (diff)
downloadsamba-daa148c38467caea6f0c6dfe59a5f0ba6797e4bb.tar.gz
samba-daa148c38467caea6f0c6dfe59a5f0ba6797e4bb.tar.xz
samba-daa148c38467caea6f0c6dfe59a5f0ba6797e4bb.zip
JHT ===> No longer needed here. Files moved to ~/packaging/redhat.
Diffstat (limited to 'examples')
-rw-r--r--examples/redhat/Instructions24
-rwxr-xr-xexamples/redhat/makeldirs.sh10
-rwxr-xr-xexamples/redhat/makerpms.sh14
-rw-r--r--examples/redhat/samba-axp.patch21
-rw-r--r--examples/redhat/samba-make.patch144
-rw-r--r--examples/redhat/samba.log11
-rw-r--r--examples/redhat/samba.pamd3
-rw-r--r--examples/redhat/samba.spec174
-rw-r--r--examples/redhat/smb.conf233
-rwxr-xr-xexamples/redhat/smb.init32
-rwxr-xr-xexamples/redhat/smbprint77
11 files changed, 0 insertions, 743 deletions
diff --git a/examples/redhat/Instructions b/examples/redhat/Instructions
deleted file mode 100644
index 60c79076ee9..00000000000
--- a/examples/redhat/Instructions
+++ /dev/null
@@ -1,24 +0,0 @@
-January 8, 1997
-Copyright (C) John H Terpstra - 1997
-
-Subject:
-========
-Preparation of RedHat RPM packages.
-
-Process:
-========
-1. Copy the official Samba-latest.tar.gz archive to /usr/src/redhat/SOURCES
-2. Un-gnuzip the file to the plain tar archive format
-3. Untar the archive to access the samba/examples/redhat files
-4. Copy the samba-make.patch file to /usr/src/redhat/SOURCES
-5. Copy samba-RHXXX.spec file to /usr/src/redhat/SPECS
- Note: Use the XXX that is your RedHat Linux Version Number
-6. Delete the extracted archive (see item 3)
-7. Go to the /usr/src/redhat/SPECS directory
-8. Execute: rpm -ba -v samba-RHxxx.spec
-9. Copy the SRPM file from the /usr/src/redhat/SRPMS directory
- and copy the RPMS file from the /usr/src/redhat/RPMS directory
- to the distribution point from which the finished packages will
- be uploaded to the samba ftp archive.
-
-Finito!!
diff --git a/examples/redhat/makeldirs.sh b/examples/redhat/makeldirs.sh
deleted file mode 100755
index 1ca312dfc18..00000000000
--- a/examples/redhat/makeldirs.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-RPMDIR=$1
-mkdir $RPMDIR
-for i in etc etc/logrotate.d bin sbin usr usr/bin usr/sbin var var/spool var/log var/lock var/lock/samba
-do
- if [ ! -x $RPMDIR/$i ]; then
- mkdir $RPMDIR/$i
- fi
- echo Mkdir $RPMDIR/$i ... Done
-done
diff --git a/examples/redhat/makerpms.sh b/examples/redhat/makerpms.sh
deleted file mode 100755
index fbda839afc4..00000000000
--- a/examples/redhat/makerpms.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# Copyright (C) John H Terpstra and Erik Troan - 1997
-#
-# First we move all our gear into place - a noble move!
-RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
-SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
-SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
-
-cp -a *.spec $SPECDIR
-cp -a *.patch smb.* samba.log $SRCDIR
-cd $SRCDIR
-tar czvf samba-1.9.17.tar.gz samba-1.9.17
-cd $SPECDIR
-rpm --clean -ba samba.spec
diff --git a/examples/redhat/samba-axp.patch b/examples/redhat/samba-axp.patch
deleted file mode 100644
index 662a0361484..00000000000
--- a/examples/redhat/samba-axp.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-*** samba-1.9.16p11/source/Makefile.RPM
---- samba-1.9.16p11/source/Makefile
-***************
-*** 179,186 ****
- # Use this for Linux without shadow passwords
- # contributed by Andrew.Tridgell@anu.edu.au
- # AXPROC defines DEC Alpha Processor
-! # FLAGSM = -DLINUX -DAXPROC
-! FLAGSM = -DLINUX
- LIBSM =
-
- # Use this for Linux with shadow passwords and quota
---- 179,186 ----
- # Use this for Linux without shadow passwords
- # contributed by Andrew.Tridgell@anu.edu.au
- # AXPROC defines DEC Alpha Processor
-! FLAGSM = -DLINUX -DAXPROC
-! # FLAGSM = -DLINUX
- LIBSM =
-
- # Use this for Linux with shadow passwords and quota
diff --git a/examples/redhat/samba-make.patch b/examples/redhat/samba-make.patch
deleted file mode 100644
index b7b1095284e..00000000000
--- a/examples/redhat/samba-make.patch
+++ /dev/null
@@ -1,144 +0,0 @@
-*** samba-1.9.17/source/Makefile.orig Sun Jul 27 00:19:02 1997
---- samba-1.9.17/source/Makefile Sun Jul 27 00:21:05 1997
-***************
-*** 5,15 ****
- ###########################################################################
-
- # The base directory for all samba files
-! BASEDIR = /usr/local/samba
-
- # The base manpages directory to put the man pages in
- # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
-! MANDIR = /usr/local/man
-
- # The directories to put things in. If you use multiple
- # architectures or share the samba binaries across NFS then
---- 5,15 ----
- ###########################################################################
-
- # The base directory for all samba files
-! BASEDIR = /
-
- # The base manpages directory to put the man pages in
- # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
-! MANDIR = /usr/man
-
- # The directories to put things in. If you use multiple
- # architectures or share the samba binaries across NFS then
-***************
-*** 18,26 ****
- # normally only applies to nmbd and smbd
- # SBINDIR implies a secure binary directory
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/bin
-! LIBDIR = $(BASEDIR)/lib
-! VARDIR = $(BASEDIR)/var
-
- # The permissions to give the executables
- INSTALLPERMS = 0755
---- 18,26 ----
- # normally only applies to nmbd and smbd
- # SBINDIR implies a secure binary directory
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/sbin
-! LIBDIR = $(BASEDIR)etc
-! VARDIR = $(BASEDIR)var
-
- # The permissions to give the executables
- INSTALLPERMS = 0755
-***************
-*** 29,41 ****
- # add -DSYSLOG for syslog support
- # RPM_OPT_FLAGS is needed when building an RPM distribution package
- # for RedHat Linux.
-! # FLAGS1 = $(RPM_OPT_FLAGS)
-! FLAGS1 = -O
- LIBS1 =
-
- # You will need to use a ANSI C compiler. This means under SunOS 4 you can't
- # use cc, instead you will have to use gcc.
-! # CC = gcc
-
- # This may help with some versions of make
- SHELL = /bin/sh
---- 29,41 ----
- # add -DSYSLOG for syslog support
- # RPM_OPT_FLAGS is needed when building an RPM distribution package
- # for RedHat Linux.
-! FLAGS1 = $(RPM_OPT_FLAGS)
-! #FLAGS1 = -O
- LIBS1 =
-
- # You will need to use a ANSI C compiler. This means under SunOS 4 you can't
- # use cc, instead you will have to use gcc.
-! CC = gcc
-
- # This may help with some versions of make
- SHELL = /bin/sh
-***************
-*** 48,60 ****
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log.smb
-! NMBLOGFILE = $(VARDIR)/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/locks
-
- # set this to the default group you want your machine to appear in
- # for browsing. This can also be set in nmbd (see nmbd(8))
---- 48,60 ----
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
-! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/lock/samba
-
- # set this to the default group you want your machine to appear in
- # for browsing. This can also be set in nmbd (see nmbd(8))
-***************
-*** 84,91 ****
-
- # This is for PAM authentication. RedHat Linux uses PAM.
- # If you use PAM, then uncomment the following lines:
-! # PAM_FLAGS = -DUSE_PAM
-! # PAM_LIBS = -ldl -lpam
-
- # This is for AFS authentication. If you use AFS then set AFS_BASE
- # according to your system layout, and uncomment the other lines as well.
---- 84,91 ----
-
- # This is for PAM authentication. RedHat Linux uses PAM.
- # If you use PAM, then uncomment the following lines:
-! PAM_FLAGS = -DUSE_PAM
-! PAM_LIBS = -ldl -lpam
-
- # This is for AFS authentication. If you use AFS then set AFS_BASE
- # according to your system layout, and uncomment the other lines as well.
-***************
-*** 200,207 ****
- # contributed by Andrew.Tridgell@anu.edu.au
- # AXPROC defines DEC Alpha Processor
- # FLAGSM = -DLINUX -DAXPROC -DFAST_SHARE_MODES
-! # FLAGSM = -DLINUX -DFAST_SHARE_MODES
-! # LIBSM =
-
- # Use this for Linux with shadow passwords and quota
- # contributed by xeno@mix.hive.no
---- 200,207 ----
- # contributed by Andrew.Tridgell@anu.edu.au
- # AXPROC defines DEC Alpha Processor
- # FLAGSM = -DLINUX -DAXPROC -DFAST_SHARE_MODES
-! FLAGSM = -DLINUX -DFAST_SHARE_MODES
-! LIBSM =
-
- # Use this for Linux with shadow passwords and quota
- # contributed by xeno@mix.hive.no
diff --git a/examples/redhat/samba.log b/examples/redhat/samba.log
deleted file mode 100644
index c5f2a5b45bc..00000000000
--- a/examples/redhat/samba.log
+++ /dev/null
@@ -1,11 +0,0 @@
-/var/log/samba/log.nmb {
- postrotate
- /usr/bin/killall -HUP nmbd
- endrotate
-}
-
-/var/log/samba/log.smb {
- postrotate
- /usr/bin/killall -HUP smbd
- endrotate
-}
diff --git a/examples/redhat/samba.pamd b/examples/redhat/samba.pamd
deleted file mode 100644
index ca2fd8df9ca..00000000000
--- a/examples/redhat/samba.pamd
+++ /dev/null
@@ -1,3 +0,0 @@
-auth required /lib/security/pam_unix_auth.so
-auth required /lib/security/pam_pwdb.so nullok shadow
-account required /lib/security/pam_unix_acct.so
diff --git a/examples/redhat/samba.spec b/examples/redhat/samba.spec
deleted file mode 100644
index 54329a13b9a..00000000000
--- a/examples/redhat/samba.spec
+++ /dev/null
@@ -1,174 +0,0 @@
-Summary: SMB client and server
-Name: samba
-%define version 1.9.17
-Version: %{version}
-Release: 6
-Copyright: GPL
-Group: Networking
-Source: ftp://samba.anu.edu.au/pub/samba/samba-%{version}.tar.gz
-Patch: samba-make.patch
-Patch2: samba-axp.patch
-Packager: John H Terpstra [Samba-Team] <jht@aquasoft.com.au>
-Requires:
-BuildRoot: /tmp/samba
-
-%description
-Samba provides an SMB server which can be used to provide network
-services to SMB (sometimes called "Lan Manager") clients, including
-various versions of MS Windows, OS/2, and other Linux machines.
-Samba also provides some SMB clients, which complement the built-in
-SMB filesystem in Linux.
-
-Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need
-NetBEUI (Microsoft Raw NetBIOS frame) protocol.
-
-This release provides enhanced browsing and protocol support and
-has been called - The BROWSE FIX release.
-
-%prep
-%setup
-%patch -p1
-
-%ifarch axp alpha
-%patch2 -p1
-%endif
-
-%build
-cd source
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
-
-%install
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/etc
-mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
-mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc0.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc1.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc2.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc5.d
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc6.d
-mkdir -p $RPM_BUILD_ROOT/home/samba
-mkdir -p $RPM_BUILD_ROOT/usr/bin
-mkdir -p $RPM_BUILD_ROOT/usr/sbin
-mkdir -p $RPM_BUILD_ROOT/usr/man/man1
-mkdir -p $RPM_BUILD_ROOT/usr/man/man5
-mkdir -p $RPM_BUILD_ROOT/usr/man/man7
-mkdir -p $RPM_BUILD_ROOT/usr/man/man8
-mkdir -p $RPM_BUILD_ROOT/var/lock/samba
-mkdir -p $RPM_BUILD_ROOT/var/log/samba
-mkdir -p $RPM_BUILD_ROOT/var/spool/samba
-
-cd source
-cd ..
-for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns
-do
-install -m755 -s source/$i $RPM_BUILD_ROOT/usr/bin
-done
-
-for i in addtosmbpass mksmbpasswd.sh smbtar
-do
-install -m755 source/$i $RPM_BUILD_ROOT/usr/bin
-done
-
-for i in smbd nmbd
-do
-install -m755 -s source/$i $RPM_BUILD_ROOT/usr/sbin
-done
-
-for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1
-do
-install -m644 docs/$i $RPM_BUILD_ROOT/usr/man/man1
-done
-
-install -m644 docs/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
-install -m644 docs/samba.7 $RPM_BUILD_ROOT/usr/man/man7
-install -m644 docs/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
-install -m644 docs/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
-install -m644 examples/simple/smb.conf $RPM_BUILD_ROOT/etc/smb.conf.sampl
-install -m644 examples/redhat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
-install -m755 examples/redhat/smbprint $RPM_BUILD_ROOT/usr/bin
-install -m755 examples/redhat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
-install -m755 examples/redhat/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
-install -m644 examples/redhat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
-install -m644 examples/redhat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
-
-ln -sf /etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K35smb
-ln -sf /etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K35smb
-ln -sf /etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K35smb
-ln -sf /etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S91smb
-ln -sf /etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S91smb
-ln -sf /etc/rc.d/init.d/smb $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K35smb
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post
-if [ "$1" = 0 ] ; then
- /sbin/pamconfig --add --service=samba --password=none --sesslist=none
-fi
-
-%postun
-if [ "$1" = 0 ] ; then
- if [ -x /etc/pam.d/samba ]; then
- rm -f /etc/pam.d/samba
- else
- if [ -x /etc/pam.conf ]; then
- /sbin/pamconfig --remove --service=samba --password=none --sesslist=none
- fi
- fi
- if [ -e /var/log/samba ]; then
- rm -rf /var/log/samba
- fi
- if [ -e /var/lock/samba ]; then
- rm -rf /var/lock/samba
- fi
-fi
-
-%files
-%attr(-,root,root) %doc docs/*.txt docs/INSTALL.sambatar docs/MIRRORS docs/PROJECTS
-%attr(-,root,root) %doc docs/README.DCEDFS docs/README.jis docs/README.sambatar
-%attr(-,root,root) %doc docs/SMBTAR.notes docs/THANKS docs/announce docs/history
-%attr(-,root,root) %doc docs/samba.faq docs/samba.lsm docs/wfw_slip.htm
-%attr(-,root,root) %doc examples
-%attr(-,root,root) /usr/sbin/smbd
-%attr(-,root,root) /usr/bin/addtosmbpass
-%attr(-,root,root) /usr/bin/mksmbpasswd.sh
-%attr(-,root,root) /usr/bin/smbclient
-%attr(-,root,root) /usr/sbin/nmbd
-%attr(-,root,root) /usr/bin/testparm
-%attr(-,root,root) /usr/bin/testprns
-%attr(-,root,root) /usr/bin/smbrun
-%attr(-,root,root) /usr/bin/smbstatus
-%attr(-,root,root) /usr/bin/nmblookup
-%attr(-,root,root) /usr/bin/smbpasswd
-%attr(-,root,root) /usr/bin/smbtar
-%attr(-,root,root) /usr/bin/smbprint
-%attr(-,root,root) %config /etc/smb.conf
-%attr(-,root,root) %config /etc/smb.conf.sampl
-%attr(-,root,root) %config /etc/rc.d/init.d/smb
-%attr(755,root,root) %config /usr/sbin/samba
-%attr(-,root,root) %config /etc/rc.d/rc3.d/S91smb
-%attr(-,root,root) %config /etc/rc.d/rc5.d/S91smb
-%attr(-,root,root) %config /etc/rc.d/rc0.d/K35smb
-%attr(-,root,root) %config /etc/rc.d/rc1.d/K35smb
-%attr(-,root,root) %config /etc/rc.d/rc6.d/K35smb
-%attr(-,root,root) %config /etc/rc.d/rc2.d/K35smb
-%attr(-,root,root) %config /etc/logrotate.d/samba
-%attr(-,root,root) %config /etc/pam.d/samba
-%attr(-,root,root) /usr/man/man1/smbstatus.1
-%attr(-,root,root) /usr/man/man1/smbclient.1
-%attr(-,root,root) /usr/man/man1/smbrun.1
-%attr(-,root,root) /usr/man/man1/smbtar.1
-%attr(-,root,root) /usr/man/man1/testparm.1
-%attr(-,root,root) /usr/man/man1/testprns.1
-%attr(-,root,root) /usr/man/man5/smb.conf.5
-%attr(-,root,root) /usr/man/man7/samba.7
-%attr(-,root,root) /usr/man/man8/smbd.8
-%attr(-,root,root) /usr/man/man8/nmbd.8
-%attr(-,root,nobody) %dir /home/samba
-%attr(-,root,root) %dir /var/lock/samba
-%attr(-,root,root) %dir /var/log/samba
-%attr(777,root,root) %dir /var/spool/samba
diff --git a/examples/redhat/smb.conf b/examples/redhat/smb.conf
deleted file mode 100644
index 0a2a66548a6..00000000000
--- a/examples/redhat/smb.conf
+++ /dev/null
@@ -1,233 +0,0 @@
-; The global setting for a default install
-; Copyright(C) John H Terpstra & Jeremy Allison - 1997
-;======================= Global Settings =====================================
-[global]
-
-; workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
- workgroup = WORKGROUP
-
-; comment is the equivalent of the NT Description field
- comment = Samba Server
-
-; printing = BSD or SYSV or AIX, etc.
- printing = bsd
- printcap name = /etc/printcap
- load printers = yes
-
-; Uncomment this if you want a guest account, you must add this to /etc/passwd
-; guest account = pcguest
- log file = /var/log/samba/log.%m
-
-; Put a capping on the size of the log files (in Kb)
- max log size = 50
-
-; Options for handling file name case sensitivity and / or preservation
-; Case Sensitivity breaks many WfW and Win95 apps
-; case sensitive = yes
- short preserve case = yes
- preserve case = yes
-
-; Security and file integrity related options
- lock directory = /var/lock/samba
- locking = yes
-; Strict locking is available for paranoid locking situations only
-; enabling this severely degrades read / write performance.
-; strict locking = yes
-; fake oplocks = yes
- share modes = yes
-
-; Security modes: USER uses Unix username/passwd, SHARE uses WfW type passwords
-; SERVER uses an other SMB server (eg: Windows NT Server or Samba)
-; to provide authentication services
- security = user
-; Use password server option only with security = server
-; password server = <NT-Server-Name>
-
-; Configuration Options ***** The location of this entry in your smb.conf
-; heirachy determines which parameters are overwritten - please watch out!
-; Where %m is any SMBName (machine name, or computer name) for which a custom
-; configuration is desired
-; include = /etc/smb.conf.%m
-
-; Performance Related Options
-; Before setting socket options read the smb.conf man page!!
- socket options = TCP_NODELAY
-; Socket Address is used to specify which socket Samba
-; will listen on (good for aliased systems)
-; socket address = aaa.bbb.ccc.ddd
-; Use keep alive only if really needed!!!!
-; keep alive = 60
-; Configure Samba to use multiple interfaces
-; Samba will auto-detect network interfaces - only use this if
-; the auto-detection does not deliver the needed results
-; interfaces = 192.168.12.2/24 176.16.111.22/19 10.11.13.14/255.255.252.0
-
-; Browser Control Options:
-; Local Master set to True causes Samba to participate in browser elections
-; the default setting is true, this causes Samba to behave like a
-; Windows NT server. Setting this to false turns off all browser
-; election participation.
-; local master = yes
-
-; OS Level gives Samba the power to win browser elections. Windows NT = 32
-; Any value < 32 means NT wins as Master Browser, > 32 Samba gets it
-; default = 0, this ensures that Samba will NOT win the browser election.
-; os level = 33
-
-; Domain Master specifies Samba to be the Domain Master Browser
-; Only ever set this if there is NO Windows NT Domain Controller on the
-; network
-; domain master = yes
-
-; Preferred Master causes Samba to force a local browser election on startup
-; preferred master = yes
-
-; Use with care only if you have an NT server on your network that has been
-; configured at install time to be a primary domain controller.
-; domain controller = <NT-Domain-Controller-SMBName>
-
-; Domain Logon Service Options:
-; Domain logon control can be a good thing! See [netlogon] share section below!
-; Do NOT set this to yes if there is an Windows NT domain controller
-; on the network
-; domain logons = yes
-
-; run a specific logon batch file per workstation (machine)
-; logon script = %m.bat
-; run a specific logon batch file per username
-; logon script = %u.bat
-
-; Where to store roving profiles (only for Win95 and WinNT)
-; %L substitutes for the SMB name we are called, %U is username
-; You must uncomment the [Profiles] share below
-; logon path = \\%L\Profiles\%U
-
-; Windows Internet Name Serving Support Section:
-; WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
-; the default is NO. If you have an Windows NT Server WINS use it!
-; Samba defaults to wins support = no
-; wins support = yes
-
-; WINS Server - Tells the NMBD components of Samba to be a WINS Client
-; Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
-; wins server = w.x.y.z
-
-; WINS Proxy - Tells Samba to answer name resolution queries on behalf of a non
-; WINS Client capable client, for this to work there must be at least one
-; WINS Server on the network. The default is NO.
-; wins proxy = yes
-
-;============================ Share Definitions ==============================
-[homes]
- comment = Home Directories
- browseable = no
- writable = yes
-
-; Un-comment the following and create the netlogon directory for Domain Logons
-; [netlogon]
-; comment = Samba Network Logon Service
-; path = /home/netlogon
-; Case sensitivity breaks logon script processing!!!
-; case sensitive = no
-; guest ok = yes
-; locking = no
-; writable = no
-; For browseable say NO if you want to hide the NETLOGON share
-; browseable = yes
-
-; Un-comment the following to provide a specific roving profile share
-; the default is to use the user's home directory
-;[Profiles]
-; path = /home/profiles
-; browseable = no
-; printable = no
-; guest ok = yes
-
-; NOTE: There is NO need to specifically define each individual printer
-[printers]
- comment = All Printers
- path = /var/spool/samba
- browseable = no
- printable = yes
-; Set public = yes to allow user 'guest account' to print
- guest ok = no
- writable = no
- create mask = 0700
-
-;[tmp]
-; comment = Temporary file space
-; path = /tmp
-; read only = no
-; public = yes
-
-; A publicly accessible directory, but read only, except for people in
-; the staff group
-[public]
- comment = Public Stuff
- path = /home/samba
- public = yes
- writable = yes
- printable = no
- write list = @users
-
-; Other examples.
-;
-; A private printer, usable only by fred. Spool data will be placed in fred's
-; home directory. Note that fred must have write access to the spool directory,
-; wherever it is.
-;[fredsprn]
-; comment = Fred's Printer
-; valid users = fred
-; path = /homes/fred
-; printer = freds_printer
-; public = no
-; writable = no
-; printable = yes
-;
-; A private directory, usable only by fred. Note that fred requires write
-; access to the directory.
-;[fredsdir]
-; comment = Fred's Service
-; path = /home/somewhere/private
-; valid users = fred
-; public = no
-; writable = yes
-; printable = no
-;
-; a service which has a different directory for each machine that connects
-; this allows you to tailor configurations to incoming machines. You could
-; also use the %u option to tailor it by user name.
-; The %m gets replaced with the machine name that is connecting.
-;[pchome]
-; comment = PC Directories
-; path = /home/pc/%m
-; public = no
-; writable = yes
-;
-;
-; A publicly accessible directory, read/write to all users. Note that all files
-; created in the directory by users will be owned by the default user, so
-; any user with access can delete any other user's files. Obviously this
-; directory must be writable by the default user. Another user could of course
-; be specified, in which case all files would be owned by that user instead.
-;[public]
-; path = /home/somewhere/else/public
-; public = yes
-; only guest = yes
-; writable = yes
-; printable = no
-;
-;
-; The following two entries demonstrate how to share a directory so that two
-; users can place files there that will be owned by the specific users. In this
-; setup, the directory should be writable by both users and should have the
-; sticky bit set on it to prevent abuse. Obviously this could be extended to
-; as many users as required.
-;[myshare]
-; comment = Mary's and Fred's stuff
-; path = /home/somewhere/shared
-; valid users = mary fred
-; public = no
-; writable = yes
-; printable = no
-; create mask = 0765
diff --git a/examples/redhat/smb.init b/examples/redhat/smb.init
deleted file mode 100755
index ab047e55b4a..00000000000
--- a/examples/redhat/smb.init
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Source networking configuration.
-. /etc/sysconfig/network
-
-# Check that networking is up.
-[ ${NETWORKING} = "no" ] && exit 0
-
-# See how we were called.
-case "$1" in
- start)
- echo -n "Starting SMB services: "
- daemon smbd -D
- daemon nmbd -D
- echo
- touch /var/lock/subsys/smb
- ;;
- stop)
- echo -n "Shutting down SMB services: "
- killproc smbd
- killproc nmbd
- rm -f /var/lock/subsys/smb
- echo ""
- ;;
- *)
- echo "Usage: smb {start|stop}"
- exit 1
-esac
-
diff --git a/examples/redhat/smbprint b/examples/redhat/smbprint
deleted file mode 100755
index 51b15706add..00000000000
--- a/examples/redhat/smbprint
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh -x
-
-# This script is an input filter for printcap printing on a unix machine. It
-# uses the smbclient program to print the file to the specified smb-based
-# server and service.
-# For example you could have a printcap entry like this
-#
-# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint
-#
-# which would create a unix printer called "smb" that will print via this
-# script. You will need to create the spool directory /usr/spool/smb with
-# appropriate permissions and ownerships for your system.
-
-# Set these to the server and service you wish to print to
-# In this example I have a WfWg PC called "lapland" that has a printer
-# exported called "printer" with no password.
-
-#
-# Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton)
-# so that the server, service, and password can be read from
-# a /var/spool/lpd/PRINTNAME/.config file.
-#
-# In order for this to work the /etc/printcap entry must include an
-# accounting file (af=...):
-#
-# cdcolour:\
-# :cm=CD IBM Colorjet on 6th:\
-# :sd=/var/spool/lpd/cdcolour:\
-# :af=/var/spool/lpd/cdcolour/acct:\
-# :if=/usr/local/etc/smbprint:\
-# :mx=0:\
-# :lp=/dev/null:
-#
-# The /usr/var/spool/lpd/PRINTNAME/.config file should contain:
-# server=PC_SERVER
-# service=PR_SHARENAME
-# password="password"
-#
-# E.g.
-# server=PAULS_PC
-# service=CJET_371
-# password=""
-
-#
-# Debugging log file, change to /dev/null if you like.
-#
-# logfile=/tmp/smb-print.log
-logfile=/dev/null
-
-
-#
-# The last parameter to the filter is the accounting file name.
-# Extract the directory name from the file name.
-# Concat this with /.config to get the config file.
-#
-eval acct_file=\${$#}
-spool_dir=`dirname $acct_file`
-config_file=$spool_dir/.config
-
-# Should read the following variables set in the config file:
-# server
-# service
-# password
-eval `cat $config_file`
-
-#
-# Some debugging help, change the >> to > if you want to same space.
-#
-echo "server $server, service $service" >> $logfile
-
-(
-# NOTE You may wish to add the line `echo translate' if you want automatic
-# CR/LF translation when printing.
-# echo translate
- echo "print -"
- cat
-) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >> $logfile