Re: Read a file with only execute permission?

From: Bill Unruh (unruh@physics.ubc.ca)
Date: 12/28/01


From: unruh@physics.ubc.ca (Bill Unruh)
Date: 28 Dec 2001 00:58:08 GMT

In <dmkm2u0p2ks5ejqn8jovvpf1pa1gu37eqc@4ax.com> greyfell@zerobyte.org writes:

] I am trying to find a way to view the source of a shellscript
]to which the author has granted only execute permission. He wants his

If it is a shell script, then you MUST have read permission in order to
execute it. (assuming "you" are not root. If you are root, you can read
it anyway) (Unless of course Unixware has changed the behaviour)
If it is a compiled program then you do not need read permission-- but
reading it would be a bit useless anyway.

]Unix version of this utility to be the only way to perform the task --
]I want to just write it into a Windows program I'm writing and save
]the trouble of logging into the Unix server to perform *one* step in a
]complex process. Surely there is some way I can view a file if I have
]rights to execute it, right? This is a UnixWare7 server. Any help
]appreciated. Since it's ego and not practicality that drives him to
]keep this secret, I'd like to get at it despite his efforts and knock
]him down a notch. TIA!



Relevant Pages

  • Re: xp_cmdShell
    ... checkbox under SQL Server Agent properties --> Job ... System) and specify a Windows account for the SQL Agent proxy with the ... > I thought if he has execute permission for my sp, which owner is DBO, that ... If I set the execute permission for 'xp_cmdshell' to my read user I get the ...
    (microsoft.public.sqlserver.programming)
  • Re: NX bit versus standard permissions?
    ... Section is not a segment neither a page. ... Now, if the CPU has no way to enforce NX, the execute permission is ... x86 CPUs could *only* enforce ... Fortunately tools have been good about setting the execute bit in the code ...
    (comp.lang.asm.x86)
  • Re: Weird Permissions Problem With Includes
    ... Yes that is the weird thing, I gave read and execute permission to the ... PHP scripts are not executed. ... calling PHP scripts from the command line, cron jobs, etc. ...
    (comp.lang.php)
  • Re: du command failing
    ... directory if the directory does not have a Read or Execute permission. ... From UNIX command line i have executed 'du' command. ... From [exec] manpage: ...
    (comp.lang.tcl)
  • Re: Regular users rying to run sp_start_job
    ... WITH EXECUTE AS 'DomainName\martinrk1' AS ... 'sp_start_job', database 'msdb', schema 'dbo'. ...
    (microsoft.public.sqlserver.security)