[talk] Permission is denied when I try to run certain programs

Thomas Levine _ at thomaslevine.com
Sat Jun 24 06:31:42 EDT 2017


My OpenBSD 6.1 system is in a state where I cannot run certain programs
because of a lack of permission. What could the issue be? Perhaps
related, this started happening around the same time when I started
getting kernel panic upon trying to create a softraid device for my
encrypted partition, which has always worked before. Both of these
issues started right after somebody unplugged my computer's while it was
running, but people have done that many times without these issues. It
is possible that I broke something while trying to fix something else.

This happens with python3.6, for example. Most programs seem fine
though.

[tlevine at koetsier] /tmp> ls -lh /usr/local/bin/python*
lrwxr-xr-x  1 root  wheel     9B Apr 29 17:24 /usr/local/bin/python ->
python3.6
-rwxr-xr-x  1 root  bin     5.6K Apr  1 20:51 /usr/local/bin/python2.7
-rwxr-xr-x  1 root  bin     101B Apr  1 20:52
/usr/local/bin/python2.7-2to3
-rwxr-xr-x  1 root  bin     1.6K Apr  1 20:52
/usr/local/bin/python2.7-config
lrwxr-xr-x  1 root  wheel     9B Apr 29 17:24 /usr/local/bin/python3 ->
python3.6
-rwxr-xr-x  2 root  bin     9.7K Apr  1 20:54 /usr/local/bin/python3.6
lrwxr-xr-x  1 root  wheel    17B Apr 28 11:08
/usr/local/bin/python3.6-config -> python3.6m-config
-rwxr-xr-x  2 root  bin     9.7K Apr  1 20:54 /usr/local/bin/python3.6m
-rwxr-xr-x  1 root  bin     3.0K Apr  1 20:56
/usr/local/bin/python3.6m-config
lrwxr-xr-x  1 root  wheel    50B Apr 28 11:04 /usr/local/bin/pythontex
-> ../share/texmf-dist/scripts/pythontex/pythontex.py

[tlevine at koetsier] /tmp> python3.6
/usr/local/bin/python3.6: Permission denied.
[tlevine at koetsier] /tmp> ktrace python3.6
ktrace: exec of 'python3.6' failed: Permission denied
[tlevine at koetsier] /tmp> kdump
 80093 ktrace   RET   ktrace 0
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/home/tlevine/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/home/tlevine/.local/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/home/tlevine/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/home/tlevine/.local/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/home/tlevine/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/home/tlevine/.local/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/usr/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/usr/sbin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/sbin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/usr/X11R6/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/usr/local/bin/python3.6"
 80093 ktrace   RET   execve -1 errno 13 Permission denied
 80093 ktrace   CALL 
 execve(0x7f7ffffc9be0,0x7f7ffffca170,0x7f7ffffca180)
 80093 ktrace   NAMI  "/usr/local/sbin/python3.6"
 80093 ktrace   RET   execve -1 errno 2 No such file or directory
 80093 ktrace   CALL 
 mprotect(0x2423e13d000,0x1000,0x3<PROT_READ|PROT_WRITE>)
 80093 ktrace   RET   mprotect 0
 80093 ktrace   CALL  mprotect(0x2423e13d000,0x1000,0x1<PROT_READ>)
 80093 ktrace   RET   mprotect 0
 80093 ktrace   CALL  write(2,0x7f7ffffc9940,0x8)
 80093 ktrace   GIO   fd 2 wrote 8 bytes
       "ktrace: "
 80093 ktrace   RET   write 8
 80093 ktrace   CALL  write(2,0x7f7ffffc9a20,0x1a)
 80093 ktrace   GIO   fd 2 wrote 26 bytes
       "exec of 'python3.6' failed"
 80093 ktrace   RET   write 26/0x1a
 80093 ktrace   CALL  write(2,0x23f6a716c08,0x2)
 80093 ktrace   GIO   fd 2 wrote 2 bytes
       ": "
 80093 ktrace   RET   write 2
 80093 ktrace   CALL  write(2,0x7f7ffffc9940,0x12)
 80093 ktrace   GIO   fd 2 wrote 18 bytes
       "Permission denied
       "
 80093 ktrace   RET   write 18/0x12
 80093 ktrace   CALL 
 mprotect(0x2423e13d000,0x1000,0x3<PROT_READ|PROT_WRITE>)
 80093 ktrace   RET   mprotect 0
 80093 ktrace   CALL  mprotect(0x2423e13d000,0x1000,0x1<PROT_READ>)
 80093 ktrace   RET   mprotect 0
 80093 ktrace   CALL 
 mprotect(0x2423e13d000,0x1000,0x3<PROT_READ|PROT_WRITE>)
 80093 ktrace   RET   mprotect 0
 80093 ktrace   CALL  mprotect(0x2423e13d000,0x1000,0x1<PROT_READ>)
 80093 ktrace   RET   mprotect 0
 80093 ktrace   CALL  munmap(0x2423e13d000,0x1000)
 80093 ktrace   RET   munmap 0
 80093 ktrace   CALL  exit(1)




More information about the talk mailing list