could someone forward the beginnings of this thread because my mailer seemingly
killed them. why do we want 26*26 directories in /var/mail again?
martin
On Sun, 15 Oct 2000 08:58:07PM -0500, guenther+procmail(_at_)gac(_dot_)edu
postulated:
dattier(_at_)panix(_dot_)com writes:
Philip suggested to jello,
...
<script to create all of the directories /var/mail/[a-z]/[a-z]>
...
Would it not perhaps be better to have only the directories needed for
existing usernames?
#!/bin/sh
cd /var/mail
sed 's-\(.\)\(.\).*-\1/\2-' /etc/passwd | uniq | \
while read dir
do
test -d $dir || mkdir -p $dir
done
chmod 755 ?
chmod 1777 ?/?
You should sort the list before piping it to uniq as the password file
isn't guaranteed to be sorted. Or just use "sort -u" instead of uniq.
The procedure for creating new accounts thereafter could include
similar code:
...
This is the problem: depending on how accounts are administered, there
might not be a 'hook' where this code could be inserted. For example,
the "adduser" program that comes with OpenBSD has no standard way to run
a given program upon account creation.
Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
madduck(_at_)madduck(_dot_)net
(greetings from the heart of the sun)
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail