From d8c00c75fe7f261bb596d80f07b04c2a92c4c504 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 9 Jan 2013 18:29:41 +0000 Subject: [PATCH] add sudo support in xdsh and updatenode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14831 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man1/updatenode.1.pod | 16 +++++++++++++++- xCAT-client/pods/man1/xdsh.1.pod | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/xCAT-client/pods/man1/updatenode.1.pod b/xCAT-client/pods/man1/updatenode.1.pod index d0cdcbfbe..29afb542c 100644 --- a/xCAT-client/pods/man1/updatenode.1.pod +++ b/xCAT-client/pods/man1/updatenode.1.pod @@ -4,7 +4,7 @@ B - Update nodes in an xCAT cluster environment. =head1 SYNOPSIS -B B [B<-V>|B<--verbose>] [B<-F>|B<--sync>] [B<-f>|B<--snsync>] [B<-S>|B<--sw>] [B<-P>|B<--scripts> [B]] [B<-s>|B<--sn>] [B<-A>|B<--updateallsw>] [B<-c>|B<--cmdlineonly>] [B<-d alt_source_dir>] [B [B]] +B B [B<-V>|B<--verbose>] [B<-F>|B<--sync>] [B<-f>|B<--snsync>] [B<-S>|B<--sw>] [B<-l> I] [B<-P>|B<--scripts> [B]] [B<-s>|B<--sn>] [B<-A>|B<--updateallsw>] [B<-c>|B<--cmdlineonly>] [B<-d alt_source_dir>] [B [B]] B B [B<-k>|B<--security>] @@ -332,6 +332,14 @@ Display usage message. Update the ssh keys and host keys for the service nodes and compute nodes; Update the ca and credentials to the service nodes. Never run this command to the Management Node, it will take down xcatd. +=item B<-l>|B<--user> I + +Specifies a remote user name to use for remote command exe- +cution. The non-root userid will must be +previously defined as an xCAT user, see process for defining non-root ids in +xCAT and setting up for using xdsh. The userid sudo setup will have +to be done by the admin on the node. See the document Granting_Users_xCAT_privileges. + =item B<-P|--scripts> Specifies that postscripts and postbootscripts should be run on the nodes. @@ -533,6 +541,12 @@ To update the service nodes with the files to be synchronized to node group comp B +=item 21 + +To run updatenode with the non-root userid "user1" that has been setup as an xCAT userid and with sudo on node1 to run as root, do the following, see xCAT doc on Granting_Users_xCAT_privileges: + +B + =back =head1 FILES diff --git a/xCAT-client/pods/man1/xdsh.1.pod b/xCAT-client/pods/man1/xdsh.1.pod index 5028367ac..7d2021abb 100644 --- a/xCAT-client/pods/man1/xdsh.1.pod +++ b/xCAT-client/pods/man1/xdsh.1.pod @@ -322,7 +322,7 @@ xCAT and setting up for using xdsh. The userid sudo setup will have to be done by the admin on the node. This includes, allowing all commands that you would like to run with xdsh by using visudo to edit the /etc/sudoers file and disabling tty requirement by commenting out or removing this line in the /etc/sudoes file "#Defaults requiretty". - +See the document Granting_Users_xCAT_privileges. =item B<-t>|B<--timeout> I