Date: Sat, 7 Oct 2000 02:14:43 -0700 (PDT) From: Dima Dorfman <dima@unixfreak.org> To: "David J. Kanter" <david.kanter@mindspring.com> Cc: FreeBSD stable <freebsd-stable@freebsd.org> Subject: Re: Security problem with "script"? Message-ID: <20001007091443.9B3621F19@static.unixfreak.org> In-Reply-To: <20001007031416.A1389@freebsd.mindspring.com> "from David J. Kanter at Oct 7, 2000 03:14:16 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> I don't know if this is an issue or not, but using the script program with > sudo seems to switch the sudoer's id to root. > > Here's an example: > > david@/usr/src % whoami > david > david@/usr/src % sudo script /usr/tmp/buildworld > Script started, output file is /usr/tmp/buildworld > root@/usr/src % whoami > root > root@/usr/src % > > Is this a security problem? Maybe it's the lack of caffeine or sleep, but I fail to see the problem here. Sudo is supposed to run the command you give it as a different user. If you don't specify one with the -u flag, it assumes you want to run it as root. It looks like it did exactly what you asked of it. Hope this helps -- Dima Dorfman <dima@unixfreak.org> Finger dima@unixfreak.org for my public PGP key. Drive defensively; buy a tank. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001007091443.9B3621F19>