hi all, I am looking for a cgi script which can be used to change the smbpasswd via web browser. Anyone done this already ?. Any pointers will he appreciated much. Thanks rakesh -------------------------------------------------------------------- Rakesh Jain Systems Administrator, MIS Dept BEA Systems, Inc. voice: +1-972-943-5135 4965, Preston Park Blvd fax: +1-972-943-5111 Suite 500 email: rakesh.jain@beasys.com Plano, TX 75093-5150 WWW: http://www.beasys.com/
In a message dated: Thu, 26 Aug 1999 01:41:46 +1000 Rakesh Jain said:>I am looking for a cgi script which can be used to change the smbpasswd via >web browser. Anyone done this already ?. Any pointers will he appreciated >much.I haven't done this, but I can't believe it would be all that hard to do, a simple shell script combined with a call to crypt (or whatever encrypts netbios passwords) then sed the replacement into the file. Perl would probably be better. Though, in general, I don't recommend doing this via the web unless you plan on using a secure server, since web traffic is easily intercepted! -- Seeya, Paul ---- Please reply to plussier@baynetworks.com. The corp sendmail people insist on rewriting outgoing mail (including Reply-to: headers!) to send to '@nortelnetworks.com' which we keep telling them is quite broken, but they don't listen :) I've been bought, sold, and now given away :) LanCity->Bay Networks->Nortel->Arris If you're not having fun, you're not doing it right!
On Fri, 27 Aug 1999 "Paul L. Lussier" <plussier@baynetworks.com> wrote:> In a message dated: Thu, 26 Aug 1999 01:41:46 +1000 > Rakesh Jain said:> >I am looking for a cgi script which can be used to change the smbpasswd via > >web browser. Anyone done this already ?. Any pointers will he appreciated > >much.> I haven't done this, but I can't believe it would be all that hard to do, > a simple shell script combined with a call to crypt (or whatever encrypts > netbios passwords) then sed the replacement into the file. Perl would > probably be better.> Though, in general, I don't recommend doing this via the web unless you plan > on using a secure server, since web traffic is easily intercepted!Modifying files directly from the CGI is probably not the best choice. To make sure these password changes are done safely and properly, it's easiest to have the CGI call the smbpasswd command to do the actual changes. This eliminates any worries about locking problems, suid root troubles, changes to the smbpasswd file format, etc... -Steve Langasek postmodern programmer