Re: Problem with setuid/execv on Cygwin/Windows 7

2012-11-09 Thread Corinna Vinschen
On Nov 9 10:08, Corinna Vinschen wrote: > On Nov 9 08:59, Laurent Cocault wrote: > > Hi Cygwin community, > > > > I am currently facing a problem with the combination of setuid/execv on a > > Cygwin/Windows 7. > > [...] > > char* args[1]; > > args[0] = NULL; > > status = execv("/bin

Re: Problem with setuid/execv on Cygwin/Windows 7

2012-11-09 Thread Corinna Vinschen
On Nov 9 08:59, Laurent Cocault wrote: > Hi Cygwin community, > > I am currently facing a problem with the combination of setuid/execv on a > Cygwin/Windows 7. > [...] > char* args[1]; > args[0] = NULL; > status = execv("/bin/bash", args); This is wrong. You should at least set arg

Problem with setuid/execv on Cygwin/Windows 7

2012-11-09 Thread Laurent Cocault
Hi Cygwin community, I am currently facing a problem with the combination of setuid/execv on a Cygwin/Windows 7. Here is the description of my configuration : * Cygwin 1.7.17 * Windows 7 Pro (64 bits) - Service Pack 1 * Compilation (no option) and execution of a sample program using an admin ac

Re: problem with setuid

2007-04-11 Thread Carlo Florendo
Felipe Alcacibar wrote: hello.. i'm trying tu run a process with low privileges, (mysql) server, with a mysql user, but this cannot be change, i'm using the Administrator account as root. and i create a mysql user into de windows users and expoted it to the passwd table. [/code] for test,

problem with setuid

2007-04-11 Thread Felipe Alcacibar
hello.. i'm trying tu run a process with low privileges, (mysql) server, with a mysql user, but this cannot be change, i'm using the Administrator account as root. and i create a mysql user into de windows users and expoted it to the passwd table. a synopsis of this [code] svr ~ # cat /etc/passw