Re: [fpc-pascal] su (switch user) application

2006-08-09 Thread Michael Van Canneyt
On Wed, 9 Aug 2006, Johannes Nohl wrote: > > Baseunix. > > Great! I found it. Is there a Windows-way, too? Something like > basewindows? Thanks... As far as I know, there is no way to change the user-id of a running process. It is possible to start a process with a different set of credential

Re: [fpc-pascal] su (switch user) application

2006-08-09 Thread Johannes Nohl
Baseunix. Great! I found it. Is there a Windows-way, too? Something like basewindows? Thanks... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] su (switch user) application

2006-08-08 Thread Michael Van Canneyt
On Tue, 8 Aug 2006, Johannes Nohl wrote: > Hello! > > > In that case you can use the fpSetUID call. > > This call can be used only once. > > Thanks for your help. But I never saw this function. Can you tell me > which unit it is in? Baseunix. See the documentation: http://www.freepascal.org

Re: [fpc-pascal] su (switch user) application

2006-08-08 Thread Johannes Nohl
Hello! In that case you can use the fpSetUID call. This call can be used only once. Thanks for your help. But I never saw this function. Can you tell me which unit it is in? Johannes ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] su (switch user) application

2006-08-07 Thread Michael Van Canneyt
On Mon, 7 Aug 2006, Johannes Nohl wrote: Does anyone know how to write a program which can change its user privileges on runtime? Like the suexec wrapper of apache? Thanks for help... This is not possible unless it runs as root. (which can be forced by setting the executable file setuid ro