summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rhrd-group7
-rwxr-xr-xutils/rhrd-sanity-check7
-rwxr-xr-xutils/rhrd-show7
-rwxr-xr-xutils/rhrd-user6
-rwxr-xr-xutils/update-rd-tokens6
5 files changed, 0 insertions, 33 deletions
diff --git a/utils/rhrd-group b/utils/rhrd-group
index 1de7e4b..f4a353d 100755
--- a/utils/rhrd-group
+++ b/utils/rhrd-group
@@ -21,15 +21,8 @@
#
use strict;
-use lib "../lib/";
use RHRD::rddb;
-# this is ridiculous but makes it a little harder to create/remove users...
-# if ($> != 0 ) {
-# print STDERR "this must be run as root!\n";
-# exit 1;
-# }
-
sub print_usage
{
print STDERR "Usage: rd-group list\n" .
diff --git a/utils/rhrd-sanity-check b/utils/rhrd-sanity-check
index 13b2b45..0929523 100755
--- a/utils/rhrd-sanity-check
+++ b/utils/rhrd-sanity-check
@@ -21,15 +21,8 @@
#
use strict;
-use lib "../lib/";
use RHRD::rddb;
-# this is ridiculous but makes it a little harder to create/remove users...
-# if ($> != 0 ) {
-# print STDERR "this must be run as root!\n";
-# exit 1;
-# }
-
sub print_usage
{
print STDERR "Usage: rhrd-sanity-check\n";
diff --git a/utils/rhrd-show b/utils/rhrd-show
index cc3b859..0aaac01 100755
--- a/utils/rhrd-show
+++ b/utils/rhrd-show
@@ -21,16 +21,9 @@
#
use strict;
-use lib "../lib/";
use RHRD::rddb;
use RHRD::utils;
-# this is ridiculous but makes it a little harder to create/remove users...
-# if ($> != 0 ) {
-# print STDERR "this must be run as root!\n";
-# exit 1;
-# }
-
sub print_usage
{
print STDERR "Usage: rd-show list [ <group> ]\n" .
diff --git a/utils/rhrd-user b/utils/rhrd-user
index 8689cb4..4f15f26 100755
--- a/utils/rhrd-user
+++ b/utils/rhrd-user
@@ -24,12 +24,6 @@ use strict;
use RHRD::rddb;
use String::MkPasswd qw(mkpasswd);
-# this is ridiculous but makes it a little harder to create/remove users...
-if ($> != 0 ) {
- print STDERR "this must be run as root!\n";
- exit 1;
-}
-
sub print_usage
{
print STDERR "Usage: rd-user list\n" .
diff --git a/utils/update-rd-tokens b/utils/update-rd-tokens
index 0fda599..c3cb633 100755
--- a/utils/update-rd-tokens
+++ b/utils/update-rd-tokens
@@ -24,12 +24,6 @@ use strict;
use RHRD::rddb;
use String::MkPasswd qw(mkpasswd);
-# this is ridiculous but makes it a little harder to change user passwords...
-if ($> != 0 ) {
- print STDERR "this must be run as root!\n";
- exit 1;
-}
-
my $ret = 0;
my ($ctx, undef, $errorstring) = RHRD::rddb::init();