No such thing as a small change | |
PerlMonks |
Re: Unix Password for validationby radiantmatrix (Parson) |
on Nov 17, 2005 at 18:18 UTC ( [id://509512]=note: print w/replies, xml ) | Need Help?? |
Depending on your UNIX flavor, you might have the Pluggable Authentication Module available. If you do, this is incredibly simple using Authen::SimplePam:
If you are doing this without the benefit of PAM, it could be trickier. As for security issues, what you really want to do is not send things over clear text -- this means FTP is a poor choice. Try SSH or another secure protocol. Also, your approach of logging in once and then allowing access based on the result code is probably not the best. With something like PAM available, it would be best to actually authenticate each operation that needs privileges. Unfortunately, that's all the more specific I can be with such a vague question.
<-radiant.matrix->
A collection of thoughts and links from the minds of geeks The Code that can be seen is not the true Code "In any sufficiently large group of people, most are idiots" - Kaa's Law
In Section
Seekers of Perl Wisdom
|
|