Remove getuid root check (#68)

Closes: https://github.com/scsitape/stenc/discussions/64
This commit is contained in:
James Wilson
2022-05-11 21:25:29 -07:00
committed by GitHub
parent 08bd10230f
commit 1508f432ad
2 changed files with 3 additions and 5 deletions

View File

@@ -227,9 +227,6 @@ int main(int argc, const char **argv) {
"'--protect' is not valid when setting encryption mode to 'rawread'");
}
if (getuid() != 0) {
errorOut("You must be root to read or set encryption options on a drive!");
}
openlog("stenc", LOG_CONS, LOG_USER);
if (action == 0) {