> I want to make a perl script that will authenticate a user when he
> logs in by askin him for his account name, if he enters it correct it
> will allow him in, if not it will kill his shell ( Basically I put
> this script to run in /etc/profile so it will run on any login, and
> actually the user is already logged in, but if he enters a name NOT in
> my array, it will kill his shell and kick him out... Should I usean
> 'awk' command in the script.. any suggestions ??? Thanks alot...
why not just give them /dev/null as a shell? or lock their accounts?
for perl advice, you would be better off at comp.lang.perl.misc, but unless you
need to do something besides kick them out, letting them that far in is a bad
idea...you will need to trap signals and such to ensure they can't break out of
the script, and it is unnecessarily complex...and shelling out to yet another
program is just going to make it messier...
--
robert sherman
css3, school of civil and environmental engineering
georgia institute of technology
atlanta, ga, usa