Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Read only flag #59

Open
jamespharvey20 opened this issue Jun 20, 2022 · 1 comment
Open

Suggestion: Read only flag #59

jamespharvey20 opened this issue Jun 20, 2022 · 1 comment

Comments

@jamespharvey20
Copy link

jamespharvey20 commented Jun 20, 2022

I needed to view my hard drive with hexedit. To modify the disk, I would need to intentionally/unintentionally make changes and then intentionally/unintentionally press F2 or Ctrl+W to save. Although hopefully this would never happen unintentionally, I would love to see a --readonly flag added to the program to be able to run hexedit as a viewer only without having any risk of modifying the file/device. Some other hex editors have the ability to start in read-only mode. (i.e. ncurses-hexedit).

I think this would be useful for files in addition to disks.

Alternatively, someone could do this if they only had read permission to the file/device, but in the case of editing a block device (at least on Arch which defaults to rw for owner and group and nothing for others) that would require changing the permissions of the block device which could have unintended side effects. Perhaps adding permissions for others to read the block device and then running hexedit as a user without being in the disk group wouldn't be too bad, especially because I believe the permissions reset on reboot, but I still think it would be worthwhile to add as an option.

@prigaux
Copy link
Collaborator

prigaux commented Jun 21, 2022

pull request accepted 👍

raff added a commit to raff/hexedit that referenced this issue Sep 29, 2022
prigaux pushed a commit that referenced this issue Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants