[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] Send mail to everybody
On Mon, Jul 26, 1999 at 02:44:28PM +0200, Cedric Amand wrote:
> BG> Ensuite, pour envoyer un mail à tous les utilisateurs "normaux" (sauf root),
> BG> tu fais:
> Ce qui a pour effet d'en envoyer une 30aine au root a cause
> des comptes systemes (games, postmaster, ftp, ...) qui sont
> tous alisasés sur root.
Nenni, hein... faut lire le script ;)
Dans awk, je filtre pour accepter uniquement les acomptes dont le UID >= 100
et != "nobody". En principe, ce sont des acomptes "normaux".
Evidemment, il n'y a quasiment pas moyen de savoir...
Ou alors, il faut vérifier s'ils peuvent se logger, etc...
--
-o) Pascal Bleser | Instead of giving Windows
/\\ C++/UNIX Development | the "three-finger-salute",
_\_v ATOS Payment Systems | give it the "one-finger-
Aachen, Germany | goodbye" {jfk/propaganda}
<pbleser@atos-group.com>--------------<guru@linuxbe.org>
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.