linutil icon indicating copy to clipboard operation
linutil copied to clipboard

Add root check

Open jeevithakannan2 opened this issue 4 months ago • 34 comments

Type of Change

  • [ ] New feature
  • [x] Bug fix
  • [ ] Documentation update
  • [ ] Refactoring
  • [ ] Hotfix
  • [x] Security patch
  • [ ] UI/UX improvement

Description

  • Thanks @cartercanedy and @adamperkowski for helping out !!
  • Add root check and warn users about running as root
  • Uses nix crate

image

Testing

  • Undergoing. Most of the scripts are tested with root, should be okay !!

Issues / other PRs related

  • Resolves #816

Checklist

  • [x] My code adheres to the coding and style guidelines of the project.
  • [x] I have performed a self-review of my own code.
  • [x] I have commented my code, particularly in hard-to-understand areas.
  • [ ] I have made corresponding changes to the documentation.
  • [x] My changes generate no errors/warnings/merge conflicts.

jeevithakannan2 avatar Oct 13 '24 13:10 jeevithakannan2