[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setresuid problem



Hi

On Friday, 28 Nov, Roberto A. Lumbreras Pastor wrote:
> Hi all.
> 
> I'm having problems with setresuid system call.
> 
> For example, in following program all setresuid calls fail:
> 
> #include <unistd.h>
> #include <sys/types.h>
> 
> /* avoid "implicit declaration..." */
> int setresuid(uid_t ruid, uid_t euid, uid_t suid);
> 
> int main()
> {
>         int i;
>         i = setresuid(13, 13, 0);
>         i = setresuid((uid_t)-1, 0, (uid_t)-1);
>         i = setresuid(0, 0, 0);
>         exit(0);
> }

Do you run it as root?

Anyway, my manual page says that setresuid is introduced in Linux
2.1.44, so it is probably safer not to let any configure scripts to
detect its presence.

	Nikita


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-alpha-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: