X-Spam-Check-By: sourceware.org
Message-ID: <461DD5E9.9020801@gmail.com>
Date: Thu, 12 Apr 2007 14:47:05 +0800
From: Carlo Florendo <subscribermail@gmail.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: problem with setuid
References: <72e3fc8f0704112136w72f7e239kf30d1ac8b3536f56@mail.gmail.com> <72e3fc8f0704112140v493ff0cxe3da85079882c1e7@mail.gmail.com>
In-Reply-To: <72e3fc8f0704112140v493ff0cxe3da85079882c1e7@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

