Skip to content

CamHawk v1.1.1 – Permission Error Fix

Latest

Choose a tag to compare

@s-r-e-e-r-a-j s-r-e-e-r-a-j released this 05 Apr 13:59
· 33 commits to main since this release
96e77fe

CamHawk v1.1.1 – Permission Error Fix (Errno -13)

What's Fixed

  • Fixed the EACCES: permission denied error that occurred when saving captured images.
  • This issue happened when CamHawk was run by a user who is not the owner of the main directory and not in the same group as the directory.

Implementation

  • Introduced the set_permissions function in camhawk.sh.
  • It automatically checks:
    • If the current user is not the directory owner, and
    • Not in the same group as the directory.
  • If both conditions are true, it applies chmod -R 777 to the main CamHawk directory to resolve permission issues.

Security Notice

  • Applying chmod 777 grants full read, write, and execute permissions to all users, which poses a security risk.
  • It is recommended to run CamHawk as the main user (e.g., kali@kali) to avoid this.