summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 48490ddf4c5..58cb61bb417 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -459,6 +459,11 @@ main (int argc, char *argv[])
int ret = -1;
glusterfs_ctx_t *ctx = NULL;
+ if (geteuid ()) {
+ printf ("Only super user can run this command\n");
+ return EPERM;
+ }
+
ret = glusterfs_globals_init ();
if (ret)
return ret;
1c2c8c0a768a2a9ed056c0d'>geo-rep/scheduler: Add validation for session existenceKotresh HR2017-10-061-1/+1 * cli/afr: gluster volume heal info "healed" command output is not appropriateMohit Agrawal2017-10-043-17/+8 * cli: fix Coverity warning DEADCODE in gf_cli_attach_tier()Mohammed Azhar Padariyakam2017-09-291-3/+0 * stack.h:PW.INCLUDE_RECURSIONSanju Rakonde2017-09-291-1/+0 * cli: Bypass the confirmation question creating replica 2 volume with forcekarthik-us2017-09-211-13/+17 * events : Add brick list in EVENT_VOLUME_CREATEAtin Mukherjee2017-09-183-5/+8 * heal: New feature heal info summary to list the status of brick and count of ...Mohamed Ashiq Liyazudeen2017-09-153-3/+16 * Use the new URL for the docsMichael Scherer2017-09-071-1/+1 * Command to identify client processhari gowtham2017-09-063-2/+143 * glusterd: Add geo-replication session details to get-state outputSamikshan Bairagya2017-08-041-33/+0 * tier: separation of attach-tier from add-brickhari gowtham2017-08-012-3/+89 * cli: error out incomplete CLI commandsAtin Mukherjee2017-07-263-8/+21 * cluster/dht: Fix negative rebalance estimatesN Balachandran2017-07-261-27/+59 * glusterd: Add option to get all volume options through get-state CLISamikshan Bairagya2017-07-252-9/+21 * mem-pool: initialize pthread_key_t pool_key in mem_pool_init_early()Niels de Vos2017-07-191-0/+5 * cli/xml: fix return handlingAtin Mukherjee2017-07-061-40/+52 * cli: add 'all' option in gluster v get cli usageAtin Mukherjee2017-06-061-1/+3 * Tier/cli: detach status xml outputhari gowtham2017-05-171-28/+29 * event/epoll: Add back socket for polling of events immediately afterRaghavendra G2017-05-121-1/+7 * glusterd: Make reset-brick work correctly if brick-mux is onSamikshan Bairagya2017-05-103-4/+20 * Fix 'flush' type, coverity warningMichael Scherer2017-05-101-1/+1 * dht:Spacing issue in fix-layout o/pAnkitRaj2017-05-091-3/+3 * cli: fix build error with --disable-xml-outputKinglong Mee2017-05-083-20/+7 * Fixes quota aux mount failureSanoj Unnikrishnan2017-05-082-4/+32 * rpc: Remove accidental IPV6 changesKaushal M2017-05-051-4/+0 * Halo Replication feature for AFR translatorKevin Vigor2017-05-021-1/+7 * cli: Adding warning message while creating a replica 2 volumekarthik-us2017-04-251-0/+18 * glusterd: Add client details to get-state outputSamikshan Bairagya2017-04-122-6/+33 * DHT: Spacing issue in fix-layout status outputAnkitRaj2017-04-111-2/+2 * build: miscellaneous spelling fixesPatrick Matthäi2017-04-021-1/+1 * glusterd: (storhaug) remove ganeshaKaleb S. KEITHLEY