delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/12/02:48:19

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 AT gmail DOT com>
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>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.
> 

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019