* new setuid and seteuid problem
@ 2000-09-11 6:03 edwede
0 siblings, 0 replies; only message in thread
From: edwede @ 2000-09-11 6:03 UTC (permalink / raw)
To: cygwin
that's a part of the problem, it doesn't ask for password.
--- here is some more detail about the problem.
I am logged into nt as my nt-domain user that has local nt-admin rights.
su and some other programs make a call to setuid or seteuid. In normal unix, the file 'su' is chmod to 4755 which is -rwsr-xr-x. There is no implementation of "set user execution bit on"
In its very simple form the program:
--------
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
main()
{
int ret;
ret=seteuid(0);
perror("err");
}
--------
for me gives "not owner".
There is no way to "set user execution bit"
Do you get something else, if so are you logged in as I am as above?
============
>>if I do an 'su - guest' or 'su - tuser1' , I get
> >
> >'su: cannot set user id: Not owner'
>You can't change user context without giving a password
>and if the process has special permissions.
--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-09-11 6:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-11 6:03 new setuid and seteuid problem edwede
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).