problem with setuid

Carlo Florendo subscribermail@gmail.com
Thu Apr 12 06:48:00 GMT 2007


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.
> 

<snipped>

> [/code]
> 
> for test, i'm using the following command...
> 
> [code]
> svr test # start-stop-daemon --start  -c mysql -q -x /usr/bin/yes
> start-stop-daemon: Unable to set uid to mysql

Cygwin handles setuid differently.  See 
http://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid

The easiest way for you to run mysql as a lower-privileged user could be to 
run the runas command.  For example

runas /user:mysql c:\cygwin\bin\bash.exe

Then from the newly spawned shell, try running the mysql command

start-stop-daemon --start  -c mysql -q -x /usr/bin/yes

Best Regards,

Carlo



-- 
Carlo Florendo
Softare Engineer/Network Co-Administrator
Astra Philippines Inc.
UP-Ayala Technopark, Diliman 1101, Quezon City
Philippines
http://www.astra.ph

--
The Astra Group of Companies
5-3-11 Sekido, Tama City
Tokyo 206-0011, Japan
http://www.astra.co.jp

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list