Which permission to execute a script?

Ignacio Vazquez-Abrams ivazqueznet at gmail.com
Mon Nov 17 01:21:50 UTC 2008


On Sun, 2008-11-16 at 01:57 -0600, Bruno Wolff III wrote:
> I was making a modified version of the guest policy that needed to be able
> to edit and run some perl scripts that also are visible to the web server.
> I used the manage_files macro and allowed execute, but I can't run the
> script directly. But I can run it via perl.
> 
> For example:
> 
> [tomarndt at wolff area]$ ./newcheck.pl
> -bash: ./newcheck.pl: /usr/bin/perl: bad interpreter: Permission denied
> [tomarndt at wolff area]$ perl ./newcheck.pl

Sounds like a EOL issue. Try running dos2unix on it.

-- 
Ignacio Vazquez-Abrams <ivazqueznet at gmail.com>

PLEASE don't CC me; I'm already subscribed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/selinux/attachments/20081116/09a911ef/attachment.bin 


More information about the selinux mailing list