Yes, you can use mmchconfig for that.

eg: mmchconfig sudoUser=gpfsadmin

Thanks,
Tru.


Message: 2
Date: Wed, 10 Oct 2018 15:58:51 +0000
From: Simon Thompson <[email protected]>
To: "[email protected]"
                 <[email protected]>
Subject: [gpfsug-discuss] Sudo wrappers
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

OK, so I finally got a few minutes to play with the sudo wrappers.

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.

Except of course I?ve clearly misunderstood things, because when I do:

[myusername@bber-dssg02 bin]$ sudo /usr/lpp/mmfs/bin/mmgetstate -a
[email protected]'s password:
[email protected]'s password:
[email protected]'s password:
[email protected]'s password:

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?

Annoyingly, I can do:
[myusername@bber-dssg02 bin]$ sudo
SUDO_USER=gpfsadmin /usr/lpp/mmfs/bin/mmgetstate -a

And that works fine? So is it possibly to set in a config file the user
that the sudo wrapper works as?

(I get there are cases where you want to ssh as the original calling user)

Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://gpfsug.org/pipermail/gpfsug-discuss/attachments/20181010/6317be26/attachment-0001.html
>
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss

Reply via email to