execve problem???
From: Java Boy (javaboy_at_zapo.net)
Date: 08/07/03
- Next message: S Brower: "Re: Multiple versions"
- Previous message: Nick Leeson: "Comparing 2 HTML files 'visually'"
- Next in thread: Ema: "Re: execve problem???"
- Reply: Ema: "Re: execve problem???"
- Reply: Bob Hauck: "Re: execve problem???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Aug 2003 17:44:50 -0700
HI there...
I compile the following code(as root) and sets the setuid bit...
as it gives a shell to any user but when the setuid bit is set the
shell should have the privileges of root but in my case it doesn't
have those privileges. I'm using redhat 7.1
#include<stdio.h>
#include<unistd.h>
int main()
{
char *file[2];
file[0]="/bin/sh";
file[1]=NULL;
execve(file[0],file ,NULL);
return 0;
}
Thanks!
- Next message: S Brower: "Re: Multiple versions"
- Previous message: Nick Leeson: "Comparing 2 HTML files 'visually'"
- Next in thread: Ema: "Re: execve problem???"
- Reply: Ema: "Re: execve problem???"
- Reply: Bob Hauck: "Re: execve problem???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|