Remove getuid root check (#68)

Closes: https://github.com/scsitape/stenc/discussions/64
This commit is contained in:
James Wilson
2022-05-12 06:25:29 +02:00
committed by GitHub
parent 08bd10230f
commit 1508f432ad
2 changed files with 3 additions and 5 deletions
+3 -2
View File
@@ -20,7 +20,7 @@ SYNOPSIS
AVAILABILITY
============
Linux
Linux, FreeBSD
DESCRIPTION
===========
@@ -38,7 +38,8 @@ OPTIONS
rewind (i.e. use */dev/nst0* instead of */dev/st0*, */dev/rmt0.1* instead
of */dev/rmt0*). Use commands like 'cat /proc/scsi/scsi', 'lsscsi', and
'lsdev' to determine the proper device to use. On some distros, a
*/dev/sg* device must be used instead of a */dev/st* device.
*/dev/sg* device must be used instead of a */dev/st* device. Typically,
only the superuser can access tape devices.
If this is the only option specified, the status of the device will be
displayed. To retrieve more detailed status information, add
-3
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) {