From 0c1857478ee0e19fee2973b770762d511f97c111 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 3 Apr 2009 15:57:48 +0000 Subject: [PATCH] disable xdsh .. -K -l until decide what to do with it git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xdsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index 8110bfd5e..7dc730390 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -263,6 +263,12 @@ sub parse_args_xdsh if ($options{'ssh-setup'}) # if going to setup ssh keys { + if ($to_userid ne $current_userid) { #error + my $msg = "For -K option, the -l option is not supported unless same id as running the command.\n"; + xCAT::MsgUtils->message("E", $msg); + exit 2; + + } # prompt for the password for the userid on the node that will be setup my $userpw;