btw, this program should be the only entry in /etc/shells so only root
is allowed privacy

On Sun, Dec 16, 2012 at 6:38 AM, Andres Perera <andre...@zoho.com> wrote:
>
> #include <sys/types.h>
> #include <stdio.h>
> #include <unistd.h>
> #define sp "/usr/bin/script"
> #define sf "/var/db/ghetto_act/%ju"
>
> main()
> {
>   char *so;
>   if (asprintf(&so, sf, getuid()) == -1) return 1/0;
>   execl(sp, sp, "-a", so, NULL);
>   return 1/0;
> }

Reply via email to