* Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...
@ 2023-09-24 17:21 Martin Wege
2023-09-24 20:39 ` Brian Inglis
0 siblings, 1 reply; 2+ messages in thread
From: Martin Wege @ 2023-09-24 17:21 UTC (permalink / raw)
To: cygwin
Hello,
I tried to setuid an executable, so that it runs as user "SYSTEM", but
it does not work.
I tried this as an user with administrator rights:
chown SYSTEM:SYSTEM foo.exe
chmod u+s,g+s foo.exe
But running ./foo then just runs it as the current user.
What am I doing wrong?
Thanks,
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...
2023-09-24 17:21 Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin Martin Wege
@ 2023-09-24 20:39 ` Brian Inglis
0 siblings, 0 replies; 2+ messages in thread
From: Brian Inglis @ 2023-09-24 20:39 UTC (permalink / raw)
To: cygwin; +Cc: Martin Wege
On 2023-09-24 11:21, Martin Wege via Cygwin wrote:
> Hello,
>
> I tried to setuid an executable, so that it runs as user "SYSTEM", but
> it does not work.
>
> I tried this as an user with administrator rights:
> chown SYSTEM:SYSTEM foo.exe
> chmod u+s,g+s foo.exe
>
> But running ./foo then just runs it as the current user.
>
> What am I doing wrong?
Not running from an elevated process or account per the Windows privilege model.
If it was possible, someone would have built working su and sudo programs in the
27 years Cygwin has been emulating POSIX under versions of Windows NT which
support privileges and security.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-24 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24 17:21 Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin Martin Wege
2023-09-24 20:39 ` Brian Inglis
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).