summaryrefslogtreecommitdiff
path: root/net/samba/INSTALL
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-02-05 05:14:46 +0000
committerjlam <jlam@pkgsrc.org>2002-02-05 05:14:46 +0000
commit5a0ca2bacc5944c589b8cd8005f56ddbeef04de0 (patch)
treecd8fd5d42714b56a069d75ef124f0a9f6f86807f /net/samba/INSTALL
parenta45c0f153ab2cdbd144f0ef5cde3fb42b92aaeb5 (diff)
downloadpkgsrc-5a0ca2bacc5944c589b8cd8005f56ddbeef04de0.tar.gz
Modify the package so that the message is only displayed if SAMBA_USE_LDAP
is not defined, as that is the only time when the smbpasswd file is consulted. Also don't create a the smbpasswd file from /etc/passwd, as that generates a lot of bad users, e.g. root, daemon, operator, etc. Instead, just create an empty smbpasswd file and rely on the admin to add approved users to the smbpasswd file using "smbpasswd -a".
Diffstat (limited to 'net/samba/INSTALL')
-rw-r--r--net/samba/INSTALL14
1 files changed, 1 insertions, 13 deletions
diff --git a/net/samba/INSTALL b/net/samba/INSTALL
index d7fc2cf143c..17841c40c42 100644
--- a/net/samba/INSTALL
+++ b/net/samba/INSTALL
@@ -1,24 +1,12 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.3 2002/02/05 00:36:25 taca Exp $
+# $NetBSD: INSTALL,v 1.4 2002/02/05 05:14:46 jlam Exp $
SAMBA_LOCKDIR="@SAMBA_LOCKDIR@"
SAMBA_PRIVATE="@SAMBA_PRIVATE@"
case ${STAGE} in
POST-INSTALL)
- # Create SMB password file
- if [ ! -e ${SAMBA_PRIVATE}/smbpasswd ]
- then
- ${ECHO} -n "Creating ${SAMBA_PRIVATE}/smbpasswd..."
- ${CHOWN} -R 0:0 ${SAMBA_PRIVATE}
- ${CAT} /etc/passwd | ${PKG_PREFIX}/sbin/mksmbpasswd \
- > ${SAMBA_PRIVATE}/smbpasswd
- ${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd
- ${CHMOD} 500 ${SAMBA_PRIVATE}
- echo "done."
- fi
-
# Check for files in old "lock" directory.
if [ -e /var/run/samba ]
then