And also your PATH remains intact, you do not inherit root's PATH. So things may not quite as expected.
On Tue, Feb 26, 2008 at 3:04 PM, McKown, John <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On > > Behalf Of LJ Mace > > Sent: Tuesday, February 26, 2008 1:41 PM > > To: [email protected] > > Subject: Re: Sudoers > > > > > > One caveat you can execute commands as root BUT you > > are not root. > > I found this out after knocking my head against the > > wall > > Very good point! I ran into this trying something like: > > sudo secure-command >/output.file > > Well, that didn't work because the redirection to "/output.file" happens > as myself, not root. > > -- > John McKown > Senior Systems Programmer > HealthMarkets > Keeping the Promise of Affordable Coverage > Administrative Services Group > Information Technology > > The information contained in this e-mail message may be privileged > and/or confidential. It is for intended addressee(s) only. If you are > not the intended recipient, you are hereby notified that any disclosure, > reproduction, distribution or other use of this communication is > strictly prohibited and could, in certain circumstances, be a criminal > offense. If you have received this e-mail in error, please notify the > sender by reply and delete this message without copying or disclosing > it. > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Mark Pace Mainline Information Systems ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
