X-Spam-Check-By: sourceware.org Message-ID: <461DD5E9.9020801@gmail.com> Date: Thu, 12 Apr 2007 14:47:05 +0800 From: Carlo Florendo User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: problem with setuid References: <72e3fc8f0704112136w72f7e239kf30d1ac8b3536f56 AT mail DOT gmail DOT com> <72e3fc8f0704112140v493ff0cxe3da85079882c1e7 AT mail DOT gmail DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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. > > [/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/