diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-10 01:05:32 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-10 01:05:32 (GMT) |
commit | 21382e3f67e2c6eaffd7ed228169e73ae28088bd (patch) | |
tree | dfe9d4338b0cc7dfc9d7f8899d9617746b8ebca0 /utils | |
parent | 96a74ca08ad6cb407823374d86a1c8da99af2871 (diff) |
removed root user checks
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/rhrd-group | 7 | ||||
-rwxr-xr-x | utils/rhrd-sanity-check | 7 | ||||
-rwxr-xr-x | utils/rhrd-show | 7 | ||||
-rwxr-xr-x | utils/rhrd-user | 6 | ||||
-rwxr-xr-x | utils/update-rd-tokens | 6 |
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(); |