I hoping someone can help me out here, to correct my configuration.
I have a NIS server and a web server as a client.
I have a regular linux user (without root privileges) "techsupport1" on NIS server.
On the client web server, I have root user, and my clients.
Now what I want to achieve is, allow my user "techsupport1" to access the web server, but instead of logging in using root user, I'd like the client to use username "techsupport1", but in the same time, give that user root privileges on the web server (client)
The reason, is that I have more than one user who need to manage the web server (client), so I want to be able to clearly see in the bash_history, who has been running what commands.
right now, when I login as a techsupport user to the web server (client) from my NIS server
ssh
demo@webserver.com
#id
uid=517(techsupport) gid=517(clientjohn) groups=517(clientjohn)
and I don't have root privileges, also my gid is matching to gid of a customer who has the same 517 on the web server.
How can I configure, so when a tech support agent 1, logs in to web server, NIS grants root privileges, but keeps the techsupport username?
Thank you in advance,
P.S. I also setup autofs for home directory, which works just fine, the home directory of techsupport user from NIS server gets automatically mounted on web server, but the problem is the privileges, that I can't figure out how to fix.