Re: How to change the unix passwd from 4gl /SPL
Posted in 1996
Koen Van der Elst wrote: > > On Tue, 02 Jul 1996 11:54:52 +0000, cMan <colin@ctinc.com> wrote: > > >The subject says it all. > >Is it possible to do it? Was there a similar discussion recently? > >Please advice > > It can be done using stored procedures and a C-program. You have to > create a program (which will have to be run with SUID set to root). > The program can use C-library calls to look-up a users password, check > it and change it. > I've done this on SCO Unix OpenServer 5 running Informix Online 7.12 > UC. Users running a Powerbuilder program on a PC can change their > Unix password without ever loggin on to the server. The Powerbuilder > program executes a SP wich executes a system call that launches the > C-program. I am glad that someone did it before. One more question to this issue: since you did it through the combination of a stored procedure and a C code, why didn't you consider to implement it as an RPC? I think RPC is more clean than a "workaround." Right?