summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpdfdistiller5
1 files changed, 3 insertions, 2 deletions
diff --git a/pdfdistiller b/pdfdistiller
index fac6bd0..3a39692 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -102,8 +102,9 @@ if [ "$user" != "" ]; then
echo "Send as pdf to $user using mimeit" >> $LOGFILE
cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $user "PDF print" \
&& rm $OUTPUTFILENAME
- else
- chown $user $OUTPUTFILENAME
+ else
+ #The following ensures that PDF has filerights so everybody of fsadmin group can delete it.
+ chown $user:fsadmin $OUTPUTFILENAME
fi
fi