LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   sudo to Root without password (https://www.linuxquestions.org/questions/linux-security-4/sudo-to-root-without-password-858835/)

egyas 01-26-2011 12:49 PM

sudo to Root without password
 
Ok, here's my situation. I'm a SA for several hundred Linux servers. One of our departments major rules is that we simply do NOT share root. PERIOD.

This has worked well, and I have been the "Great Wall of No" at work for quite some time.

However, now politics are involved. We have a couple of clusters that are running Oracle. If you're familiar with Oracle you know that it basically has to be installed as root. Something I detest. anyway, when we are building out the box, we change the root pw and give it to the DBA team to do their installs and configs. When they are done, we change the root pw (and do not give it to them), and configure sudo to allow them the rights needed to manage Oracle and their databases.

Now however, we have a different situation. The DBAs need access to uninstall and reinstall components and make modifications on an ongoing basis. Since we only support OS and hardware, not app, they are requesting permanent root access. I promptly told them no, and the politics ensued. Their manager went to their director, who went to my director, and suddenly an exception is given for his good golfing buddy.

So here I am, forced to turn lose DBAs on my clusters with full root access/pw. Unless you guys can help me find a *LEGAL* way to do that which I think is impossible.

I need a way to allow specific users (or perhaps a specific user group) the ability to become root WITHOUT sharing the root pw with them.

I'm screwed, aren't I?

acid_kewpie 01-26-2011 01:27 PM

Well to cut a long story short... use sudo. it does *exactly* what you're asking for, that's it's reason for existing. You don't use the root password in sudo, you use your own. "man sudoers" for more details.

AlucardZero 01-26-2011 01:28 PM

use sudo.

Note: sudo CAN be configured to ask for the root password, but only SLES 10 does that by default (which you can change). Everybody else asks for the user's password.

unSpawn 01-26-2011 07:14 PM

Next to practical Sudo usage I would like to point out the benefit of having an isolated staging area: it may allow you to recover more easily from breakage, monitor (ab)use and track completed RFC's. You then transfer those to the separate production environment only you have access to.


All times are GMT -5. The time now is 10:34 AM.