DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd May 2017
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 125
Question Permission denied on OpenBSD 6.1

Hi everyone,

I got "Permission denied" when running a file. I checked the file permission and it already had the right to execute. Can anyone help me solve this issue?
Reply With Quote
  #2   (View Single Post)  
Old 2nd May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Can anyone help me solve this issue?
Not without much more information.

What do ls(1) and file(1) say about your file? What is it's full path name? What is your shell's $PATH, and what command string are you using?
Reply With Quote
  #3   (View Single Post)  
Old 2nd May 2017
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Also check the output of dmesg to see if it's a W^X violation. Did you forget to add wxallowed to the filesystem mount options?
Reply With Quote
  #4   (View Single Post)  
Old 2nd May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

And ... the file could also be located within a noexec mount(8) point. Or, it could be a script pointing to an invalid #! path.

There are many possible reasons for failing to execute something.
Reply With Quote
  #5   (View Single Post)  
Old 18th May 2017
hermano hermano is offline
Port Guard
 
Join Date: Mar 2017
Posts: 18
Default

Things to check:
Normal file permissions
ACLs
Path

and it can be calling something else that fails and raises the error.
Reply With Quote
  #6   (View Single Post)  
Old 18th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by hermano View Post
ACLs
Not on OpenBSD. The FFS filesystem only has file modes and file flags.

I will guess that notooth discovered the root cause of the error, since we have not heard anything for two weeks.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Commit to pkgsrc-wip - Permission denied darktrym NetBSD Package System (pkgsrc) 1 5th June 2016 08:45 PM
sendmail, mqueue : permission denied wesley General software and network 1 20th January 2011 02:30 PM
Permission denied (publickey). Help pls rex FreeBSD General 13 14th October 2008 08:54 PM
Tightvnc startup script not loading fonts - permission denied master-richie FreeBSD Ports and Packages 2 3rd August 2008 09:29 PM
Permission denied delboy FreeBSD Ports and Packages 11 24th May 2008 09:26 PM


All times are GMT. The time now is 09:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick