<html><body><p><font size="2">Yes, you can use mmchconfig for that.</font><br><br><font size="2">eg: mmchconfig sudoUser=gpfsadmin</font><br><br><font size="2">Thanks,</font><br><font size="2">Tru.</font><br><br><br><tt><font size="2">Message: 2<br>Date: Wed, 10 Oct 2018 15:58:51 +0000<br>From: Simon Thompson <S.J.Thompson@bham.ac.uk><br>To: "gpfsug-discuss@spectrumscale.org"<br>                 <gpfsug-discuss@spectrumscale.org><br>Subject: [gpfsug-discuss] Sudo wrappers<br>Message-ID: <88E47B96-DF0B-428A-92F6-1AEAEA4AA8EE@bham.ac.uk><br>Content-Type: text/plain; charset="utf-8"<br><br>OK, so I finally got a few minutes to play with the sudo wrappers.<br><br>I read the docs on the GPFS website, setup my gpfsadmin user and made it so that root can ssh as the gpfsadmin user to the host.<br><br>Except of course I?ve clearly misunderstood things, because when I do:<br><br>[myusername@bber-dssg02 bin]$ sudo /usr/lpp/mmfs/bin/mmgetstate -a<br>myusername@bber-afmgw01.bb2.cluster's password: myusername@bber-dssg02.bb2.cluster's password: myusername@bber-dssg01.bb2.cluster's password: myusername@bber-afmgw02.bb2.cluster's password:<br><br>Now ?myusername? is ? my username, not ?gpfsadmin?. What I really don?t want to do is permit root to ssh to all the hosts in the cluster as ?myusername?. I kinda thought the username it sshes as would be configurable, but apparently not?<br><br>Annoyingly, I can do:<br>[myusername@bber-dssg02 bin]$ sudo SUDO_USER=gpfsadmin /usr/lpp/mmfs/bin/mmgetstate -a<br><br>And that works fine? So is it possibly to set in a config file the user that the sudo wrapper works as?<br><br>(I get there are cases where you want to ssh as the original calling user)<br><br>Simon<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <</font></tt><tt><font size="2"><a href="http://gpfsug.org/pipermail/gpfsug-discuss/attachments/20181010/6317be26/attachment-0001.html">http://gpfsug.org/pipermail/gpfsug-discuss/attachments/20181010/6317be26/attachment-0001.html</a></font></tt><tt><font size="2">></font></tt><BR>
</body></html>