[907] in linux-security and linux-alert archive
Re: [linux-security] SUDO problems
daemon@ATHENA.MIT.EDU (James)
Mon Jul 15 14:04:47 1996
Date: Sun, 14 Jul 1996 05:13:33 -0400 (EDT)
From: James <james@bell.annis.com>
To: linux-security@tarsier.cv.nrao.edu
> It's already in the newest versioon :)
Well I didn't know there was a new version out.. (does it support
shadow?)... I am using 1.2 and hacked up a quick fix in about 4 minutes
that works...
I really don't have much time to reinstall software and make sure it is
working, and maybe someone else is in the same position that I am, so I
figured I would post my diff...
James Golovich
--- check.c.old Sun Jul 14 04:03:08 1996
+++ check.c Sun Jul 14 04:07:51 1996
@@ -42,6 +42,7 @@
#include <sys/time.h>
#include <sys/file.h>
#include <pwd.h>
+#include <unistd.h>
#include "sudo.h"
#ifdef LINUX
@@ -133,7 +134,9 @@
time_t now;
-sprintf ( timestampfile, "%s/%s", TIMEDIR, user );
+sprintf ( timestampfile, "%s/%s.%s", TIMEDIR, user,
+strtok(ttyname(fileno(stdin)), "/dev") );
+
timestampfile_p = timestampfile;
timedir_is_good = 1; /* now there's an assumption for ya... */