LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-22-2016, 12:13 PM   #1
martinlangley
Member
 
Registered: Nov 2008
Posts: 69

Rep: Reputation: 0
fork/exec permission denied issue


Here's a tricky one you should find an interesting challenge.

Issue:

Write a program or script that:
- Reads from STDIN.
- For every line received, base64 encode it, and output the result on a new line to STDOUT.

Make the program excutable and store it at /usr/local/bin/task7_test

Having done all this and put a script called "eric" at the correct location with "777" permissions containing the base64 encoder command, when run, it gives a "fork/exec /usr/local/bin/task7_test: permission denied" error.

Seems it may be a bug or summat.

Any ideas? box is Ubuntu 16

ML
 
Old 05-22-2016, 01:12 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Try posting the script(s) here. It's hard to guess otherwise. Except for 777, you don't want that.
 
Old 05-23-2016, 04:39 AM   #3
martinlangley
Member
 
Registered: Nov 2008
Posts: 69

Original Poster
Rep: Reputation: 0
base64

shell script "eric", contents "base64"

That's it

permissions are 777, doesn't seem to matter

ML
 
Old 05-23-2016, 06:41 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Try posting the script(s) here.
if it was a few line only, just copy it here, in between [code] and [/code]
Otherwise we can only imagine what you have made and you can only imagine the answer... but doesn't seem to matter
 
Old 05-23-2016, 07:57 AM   #5
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by martinlangley View Post
Having done all this and put a script called "eric" at the correct location with "777" permissions containing the base64 encoder command, when run, it gives a "fork/exec /usr/local/bin/task7_test: permission denied" error.
What are the permissions of the directory /usr/local/bin/task7_test?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /usr/bin/xterm: Could not exec /bin/bash: Permission Denied suheng Linux - Newbie 2 09-24-2010 05:31 PM
SSH permission denied Issue sachinh Linux - General 7 09-09-2009 06:58 AM
CRON problem: (rsync: Failed to exec ssh: Permission denied (13)) Fairys Fedora 6 01-16-2008 06:34 PM
NeroLinux issue - permission denied Fill Linux - Software 4 10-25-2007 04:35 PM
Permission Denied Issue (concerning IMAP) BtySgtMajor Linux - Newbie 2 01-10-2006 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration