Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: denzel.sciencetools.com: rtroy owned process doing -bs Date: Tue, 23 Mar 2004 10:33:20 -0800 (PST) From: Richard Troy To: Subject: Re: suid bit on executables? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes > Richard, > > FYI, Cygwin implements /dev/conin and /dev/conout, so, perhaps, the > approach suggested in > would be helpful (or something along those lines). Hi Igor, I tried man and apropos, and found nothing for conin or conout, but if I understand what you're suggesting, you're saying I should try something like the following: The original command to use as a template (I take it this worked?): cygrunsrv --install fetchmail --path /usr/bin/su.exe --args "-p -c '/usr/bin/fetchmail --daemon 300 --nodetach /dev/conout' domain\\user" --env HOME=/home/user --termsig TERM --shutdown --type manual --interactive My interpretation of the above: cygrunsrv --install --path /usr/bin/su.exe --args "-p -c ' /dev/conout' \\" --env --termsig TERM --shutdown --type manual --interactive Hmmm... Yes, this _seems_to_me_ to be exactly what I was hinting at when Corinna suggested ssh instead. ... The above would be both better and easier because there's no need for keys and no encryption overhead. Do I understand that conin and conout redirect std-in and std-out to/from the installed service to the caller of the service? Also, you said: > OTOH, once cygserver is in place, we'll have a working "su" (which is > exactly what you want, right?). But in the above cygrunsrv you call su! Yes, I know the executable is there - in at least this example, does it work? Also, since there's an ability to specify the user, maybe use the user flag, specify it explicitly and ignore the su.exe? Thanks for all your keystrokes! Regards, Richard -- Richard Troy, Chief Scientist Science Tools Corporation rtroy AT ScienceTools DOT com, 510-567-9957, http://ScienceTools.com/ -- 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/