Python Forum
Permission issue when using scapy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Permission issue when using scapy
#3
(Feb-05-2022, 03:14 PM)snippsat Wrote: Try -E switch to preserve environment.
sudo -E python script_name.py
(Feb-05-2022, 02:53 PM)jao Wrote: Why does this happen? Does this problem have a solution?
The problem is that the package scapy has been installed as user and not as root.
When you try to use sudo,it does not recognize the system path.
So need sudo install to,or try make a virtual environment(build into Python) and run scapy from there.

It worked, thank you Big Grin . If I had installed Scapy with sudo pip3 install scapy i would still have the same problem?

I intend to create an executable with this script for it to work on other computers, will it be necessary to run this script with root permission?
Reply


Messages In This Thread
Permission issue when using scapy - by jao - Feb-05-2022, 02:53 PM
RE: Permission issue when using scapy - by snippsat - Feb-05-2022, 03:14 PM
RE: Permission issue when using scapy - by jao - Feb-05-2022, 03:30 PM
RE: Permission issue when using scapy - by snippsat - Feb-05-2022, 06:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The INSERT permission was denied on the object Steven5055 3 1,750 Jun-12-2024, 08:13 AM
Last Post: GregoryConley
  Delete file with read-only permission, but write permission to parent folder cubei 6 22,465 Jun-01-2024, 07:22 AM
Last Post: Eleanorreo
  KivyMD android app - problem with permission polak7gt 0 394 Jan-18-2024, 01:27 PM
Last Post: polak7gt
  Potential Permission error on Mac OSX Catalina OWOLLC 1 904 Nov-02-2023, 07:52 AM
Last Post: unjnsacih
  logging: change log file permission with RotatingFileHandler erg 0 1,241 Aug-09-2023, 01:24 PM
Last Post: erg
  Error no 13: Permission denied in python shantanu97 1 6,422 Mar-31-2021, 02:15 PM
Last Post: snippsat
  error in scapy attribute 'haslayer' evilcode1 5 6,799 Mar-02-2021, 11:19 AM
Last Post: evilcode1
  How a Mac OS software can restart itself with admin permission in Python 3.7? Formationgrowthhacking 0 1,873 Sep-03-2020, 05:29 PM
Last Post: Formationgrowthhacking
  Error 13 permission tpolim008 2 3,612 Apr-09-2020, 06:22 PM
Last Post: tpolim008
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 73,996 Mar-09-2020, 03:20 PM
Last Post: syssy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020