summaryrefslogtreecommitdiff
path: root/scripts/vyatta-sudo
diff options
context:
space:
mode:
authorDmytro Aleksandrov <alkersan@gmail.com>2019-08-14 01:20:42 +0300
committerDmytro Aleksandrov <alkersan@gmail.com>2019-08-16 18:39:48 +0300
commitd77874da2cee5824996061cf52f432fec29a6aa7 (patch)
tree5a81164102459712aadd0855fa3c5cb8f1585b50 /scripts/vyatta-sudo
parent69c24c0ec2299cbe07d5f0ce0351f47286d5b095 (diff)
downloadvyatta-op-d77874da2cee5824996061cf52f432fec29a6aa7.tar.gz
vyatta-op-d77874da2cee5824996061cf52f432fec29a6aa7.zip
T1590 remove 'show system' operations after xml-style rewrite
Diffstat (limited to 'scripts/vyatta-sudo')
-rwxr-xr-xscripts/vyatta-sudo21
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/vyatta-sudo b/scripts/vyatta-sudo
deleted file mode 100755
index bb95ae5..0000000
--- a/scripts/vyatta-sudo
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /usr/bin/perl
-#
-
-# Look if user is in sudo group
-use strict;
-use warnings;
-
-sub isadmin {
- my $gid = getgrnam("sudo");
- return unless $gid;
-
- # is $gid in list of current groups
- return grep { $_ eq $gid } split / /, $(;
-}
-
-die "Missing command arguement\n" unless @ARGV;
-
-exec ('sudo', @ARGV ) if (isadmin());
-
-print "This account is not authorized to run this command\n";
-exit 1;