Commit 116a3235 authored by Leigh Stoller's avatar Leigh Stoller

Install paperbag in sbin and change mkacct-ctrl to use that path.

parent 3b7382d5
......@@ -28,7 +28,7 @@ suexec: suexec.c suexec.h
$(CC) $(CFLAGS) -o suexec suexec.c
install: $(addprefix $(INSTALL_LIBEXECDIR)/, $(BINS)) \
$(addprefix $(INSTALL_BINDIR)/, paperbag)
$(addprefix $(INSTALL_SBINDIR)/, paperbag)
@echo "Don't forget to do a post-install as root"
post-install:
......
#!/usr/local/bin/perl -wT
### $Id: mkacct-ctrl.in,v 1.1 2001-01-04 01:17:07 stoller Exp $
### $Id: mkacct-ctrl.in,v 1.2 2001-01-04 23:18:12 stoller Exp $
use English;
use Mysql;
......@@ -11,6 +11,8 @@ use Mysql;
my $TB = "@prefix@";
my $DBNAME = "@TBDBNAME@";
my $PBAG = "$TB/sbin/paperbag";
my $me; # alphanumeric username of $UID
my $user; # kwright
......@@ -157,7 +159,7 @@ sub dowork() {
my $cmd = "/usr/sbin/pw useradd $user -u $user_number " .
"-k /usr/share/skel -m " .
"-d /users/$user -g $project " .
"-s $TB/security/paperbag";
"-s $PBAG";
open(PWADDP, "$cmd 2>&1 |") or die "$0: Could not open pw useradd on paper.";
while (<PWADDP>) { print "$_"; }
close(PWADDP);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment