Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
Inside of my sudoers file, I would like to give my DBA's the ability to switch to their Administrative accounts. I am currently using the Cmnd_Alias function to provide access to some commands, and want to give /bin/su, but need to limit the IDs available to them. Is it possible to specify /bin/su - <userid>?
How else can this be accomplished?
Sorry, I would like to provide the %dba group access to a specific username, like oracle. This way they can switch to oracle from their personal logins.
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71
Rep:
Quote:
Originally Posted by tmy
This way they can switch to oracle from their personal logins.
I could be misunderstanding your requirements but if you want to change your primary group from foo to bar you could use:
Code:
sg bar
You could also want to limit which users can make use of /bin/su in which case you could change the owning or named group of that file to oracle and delegate them that privilege via sudo.
Let me know in as much detail what you're trying to do.
I have the Cmnd_Alias DBA = /bin/su <-- allows people in the dba group to switch to any user they choose. I would like to restrict it to 1 specific user, which is the admiinistrative database user "oracle" can I set the Cmnd_Alias DBA = /bin/su - oracle? Can I identify 1 specific user that the /bin/su applies to in Cmnd_Alias? I've never done that before, and am not sure it would work. Then, I set the group dba to allow commands in DBA Cmnd_Alias...
Why on earth would you give a DBA full access to root? And if you're going to do that, why go through the exercise of creating a command alias to do it?
Which gives the DBA's the ability to switch to their admin account "oracle".
Thank you again, this was something I wanted to get put into production, and now I can. Have a great day!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.