diff --git a/man/stenc.rst b/man/stenc.rst index 7927106..8c7186b 100644 --- a/man/stenc.rst +++ b/man/stenc.rst @@ -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 diff --git a/src/main.cpp b/src/main.cpp index 3c83be3..3c8f12c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) {