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 Message-ID: <41D45B17.3060100@familiehaase.de> Date: Thu, 30 Dec 2004 20:46:31 +0100 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: David Arnstein CC: cygwin AT cygwin DOT com Subject: Re: Porting issues: file owned by root, user nobody References: <41D451B9 DOT 7030500 AT pobox DOT com> In-Reply-To: <41D451B9.7030500@pobox.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes David Arnstein wrote: > My issues concern porting a Linux application to cygwin. I read > http://cygwin.com/faq/ but I did not find answers. If there is another > resource I should read, please advise. > > The application is "dnrd," published on SourceForge For security > reasons, dnrd > 1. Insists that its config files be owned by root. > 2. Changes its uid to "nobody," using setuid(). > > Has the cygwin community settled on uniform methods to deal with these > programming tasks? > > For the file ownership issue, I just have to decide if the appropriate > owner is SYSTEM, Administrator, or something else. And what about group > ownership? $ cat /etc/group | grep root root:S-1-5-32-544:0: Someone inserted this into my /etc/group file. > For the uid issue, I might have to create an unprivileged account to > take the place of "nobody." Unless a more clever solution has been > worked out. Also, setuid() always fails for me. Are there limitations > to this function in cygwin? Yes, this is covered in the User Guide: http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid Gerrit -- =^..^= -- 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/