./users.gather >> /etc/raddb/users Nothing fancy, but it does work. users.gather: #!/bin/sh - # PATH=/sbin:/usr/sbin:/bin:/usr/bin cp /etc/passwd ./passwd.tmp awk 'BEGIN { FS = ":" } { # Filter out slip and PPP accounts if ($1 ~ /^P/) { if ($1 != "root" && $1 != "toor" && \ $1 != "demo" && $1 != "www") { printf ""$1" Password = \"UNIX\"\n" printf "\tUser-Service = Framed-User,\n" printf "\tFramed-Protocol = PPP\n" } } }' passwd.tmp echo removing temporary files rm -f passwd.tmp exit 0 Craig Salmond wrote: > > Is it possible to have radius read the /etc/passwd (or /etc/shadow) file > instead of the /etc/raddb/users file? Or alternatley a way to create the > users file from the /etc/passwd file. > > TIA > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Craig Salmond salmond@mail.cde.com > Craig's DATA Exchange! <A HREF="http://www.cde.com">http://www.cde.com</A> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Shipping Address (FLA) 735-CDE1 Sales Billing Address > Craig's DATA Exchange! (FLA) 483-2482 Home Craig's DATA Exchange! > 18826 U.S. HWY 441 (FLA) 735-9511 FAX P.O. Box 1401 > Mt. Dora, FL 32757 (FLA) 735-INET BBS Mt. Dora, FL 32757 > "Lake County's Internet Authority" > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > ++ Ascend Users Mailing List ++ > To unsubscribe: send unsubscribe to ascend-users-request@bungi.com > To get FAQ'd: <<A HREF="http://www.shore.net/~dreaming/ascend-faq">http://www.shore.net/~dreaming/ascend-faq</A>> > or <<A HREF="ftp://ftp.shore.net/members/dreaming/ascend-faq.txt">ftp://ftp.shore.net/members/dreaming/ascend-faq.txt</A>> -- Don Joy System Administrator SooNet Corp ++ Ascend Users Mailing List ++ To unsubscribe: send unsubscribe to ascend-users-request@bungi.com To get FAQ'd: <<A HREF="http://www.shore.net/~dreaming/ascend-faq">http://www.shore.net/~dreaming/ascend-faq</A>> or <<A HREF="ftp://ftp.shore.net/members/dreaming/ascend-faq.txt">ftp://ftp.shore.net/members/dreaming/ascend-faq.txt</A>> </PRE> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <!--X-Follow-Ups-End--> <!--X-References--> <HR> <STRONG>References</STRONG>: <UL> <LI><STRONG><A HREF="msg04949.html">(ASCEND) Newbie Radius Question.</A></STRONG></LI> <UL> <LI><EM>From</EM>: Craig Salmond <salmond@unix.cde.com></LI> </UL> </UL> <!--X-References-End--> <!--X-BotPNI--> <HR> <UL> <LI>Prev by Date: <STRONG><A HREF="msg04953.html">Re: (ASCEND) Mysterious appearing route</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg04950.html">Re: (ASCEND) Mysterious appearing route</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg04949.html">(ASCEND) Newbie Radius Question.</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg04952.html">Re: (ASCEND) Newbie Radius Question.</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="mail158.html#04951"><STRONG>Main</STRONG></A></LI> <LI><A HREF="thrd19.html#04951"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> </BODY> </HTML>