This may seem like a silly question, but why whould you want
to do this via CGI? I mean, yes, there are security conserns,
but in addition to that, is this something that you do that
often? I have several linux boxes, and I basically do this
once for each of them and I am done.
Scott
Comment on Re: To setup Linux NIS, samba and shadow shadow passwords
This script will run on a linux server which provides file sharing for windows (samba), linux (NIS) and Xterminal (ltsp) in a french high school.
Students use both linux and windows (Windows in the library, Windows or linux in my classroom...), so i thought a cgi script is more simple for them because the way to change the password is the same.
Another reason is that when I create the accounts, the password used is the last name, the login name used is the first name.
So, they must quickly change the password.
And, as I am a (lazy) teacher, I can't be here every day to do that task.