* Porting issues: file owned by root, user nobody
@ 2004-12-30 19:06 David Arnstein
2004-12-30 19:46 ` Gerrit P. Haase
0 siblings, 1 reply; 2+ messages in thread
From: David Arnstein @ 2004-12-30 19:06 UTC (permalink / raw)
To: cygwin
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?
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?
--
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Porting issues: file owned by root, user nobody
2004-12-30 19:06 Porting issues: file owned by root, user nobody David Arnstein
@ 2004-12-30 19:46 ` Gerrit P. Haase
0 siblings, 0 replies; 2+ messages in thread
From: Gerrit P. Haase @ 2004-12-30 19:46 UTC (permalink / raw)
To: David Arnstein; +Cc: cygwin
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-30 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-30 19:06 Porting issues: file owned by root, user nobody David Arnstein
2004-12-30 19:46 ` Gerrit P. Haase
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).