summaryrefslogtreecommitdiff
path: root/source3/smbadduser
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbadduser')
-rwxr-xr-xsource3/smbadduser14
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/smbadduser b/source3/smbadduser
index 9837413aeb..35f6dbab14 100755
--- a/source3/smbadduser
+++ b/source3/smbadduser
@@ -2,13 +2,19 @@
#
# smbadduser - Written by Mike Zakharoff
#
+
+prefix=/usr/local/samba
+exec_prefix=${prefix}
+LIBDIR=${exec_prefix}/lib
+PRIVATEDIR=${prefix}/private
+CONFIGDIR=${LIBDIR}
+
unalias *
set path = ($path /usr/local/samba/bin)
-set smbpasswd = /usr/local/samba/private/smbpasswd
-#set smbpasswd = /etc/samba/smbpasswd
-set user_map = /usr/local/samba/lib/users.map
-#set user_map = /etc/samba/smbusers
+set smbpasswd = $PRIVATEDIR/smbpasswd
+set user_map = $CONFIGDIR/users.map
+
#
# Set to site specific passwd command
#