mirror of
https://github.com/scsitape/stenc.git
synced 2026-09-20 14:14:14 +00:00
Remove getuid root check (#68)
Closes: https://github.com/scsitape/stenc/discussions/64
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user