NIS password mapping question
Posted
by papoyan
on Stack Overflow
See other posts from Stack Overflow
or by papoyan
Published on 2010-05-19T22:35:25Z
Indexed on
2010/05/19
22:40 UTC
Read the original article
Hit count: 403
I have NIS server with user "techsupport", which has uid/gid = 517
I've configured NIS and NFS on that server, as well as NFS/NIS client on the remote web server.
Now I need to techsupport user to be able to login to web server using techsupport username, but HAVE root privileges. I need this, so I can easily track, which support agent doing what on the web server.
Everything works fine, when from NIS server, I ssh to the web server with tech support user
nisserver# ssh [email protected]
I can authenticate against the NIS server just fine, and my home directory that is on NIS server, get's mounted on web server just fine. The Only two problems I have are :
- my GID on web server is webserver# id uid=517(techsupport) gid=517(client_jonny) groups=517(client_jonny)
(as you can see, that it picked up gid of a client that exists on the web server, since it's same number)
- I need to make sure, that my "techsupport" user has ROOT privileges.
How can I achieve this? I remember that I've seen identical results elsewhere, but LDAP was used, is there a way to achieve this with NIS/NFS setup?
Thank you in advance,
© Stack Overflow or respective owner