in reply to Re^3: perl file status and sudo
in thread perl file status and sudo

The issue is, I have been told by in-house staff that is is not possible in sudo. I though someone might know if it is, or if there is an alternate.

Replies are listed 'Best First'.
Re^5: perl file status and sudo
by JavaFan (Canon) on Mar 22, 2012 at 14:04 UTC
    *What* isn't possible in sudo?

      Giving perl -e $FILE or -f $FILE the ability to return the correct status of files that I, as a standard user do not have access to. As Security, I am allowed to see anything, but change nothing, and so as my standard user, am told files do not exist that really do.

        sudo is used to give people the right to run a specific command as a different user -- it doesn't control the rights inside some other program. (Given that you're in "security", I would assume you knew this).
        As Security, I am allowed to see anything, but change nothing
        If you're allowed to "see anything", why do you think you need special permission to see if a file exists? Do you know what "anything" means? Perhaps you use a different meaning that the rest of the world?
        and so as my standard user, am told files do not exist that really do.
        Are you sure noone is trying to pull you a leg? "Files that do not exist that really do" sound like a prank -- like what they try to pull on newbies in a woodshop: sending them on an errand to get a square hole drill.