I am a extremely new administrator to the linux world.
I have been asked to create a login menu for a user(not root) that will enable this user to lock and unlock a predetermined set of ID's across 5 servers.
Right now I'm working on the command line the menu will call.
I'm using sudo, rsh and usermod.
Example command line:
"sudo /usr/bin/rsh server_name /usr/sbin/usermod -L User_ID".
I'm getting permission denied as a result.
I'm looking for instructions on the rsh and sudo part because I believe this is what's generating the permission denied message I'm getting. But I could be way off base too.
I have been working with configuring the sudoers, .rhosts, host and host.equiv files but not sure if their set up correctly on the host and target servers.
Thanks in advance.