Page 1 of 1

listing authenication IDs

Posted: Mon Jul 31, 2006 12:38 pm
by dotbill
Is there a way to list all authentication IDs in the system via command line? Similarly, omshowu shows the user full name. I need to be able to run some sxaa rules on all users and need an automated way to generate the auth id list and pipe into script....

Thanks

-Bill

Posted: Mon Jul 31, 2006 12:48 pm
by dkelly

Posted: Mon Jul 31, 2006 1:40 pm
by dotbill
Great. So the while do shows a listing of rules. Could do this to create a rule?:

omshowu -m all | while read username
do
sxaa --user "$username" ..... --file "Junk E-mail" --header "X-Spam-Level:***" --header "X-Spam-Status: Yes" --header "X-Spam-Flag: Yes" --title "Anti-Spam Rule"
done


-bill