Quantcast
Channel: How can I allow one user to su to another without allowing root access? - Server Fault
Viewing all articles
Browse latest Browse all 5

Answer by Kjetil Joergensen for How can I allow one user to su to another without allowing root access?

$
0
0

Add to your /etc/sudoers something like

tom ALL=(oracle) ALL

Then user tom should be able to use sudo to run things as user oracle with the -u option, without letting tom

I.e. getting a shell as user oracle (well, given that your sudo is new enough to have the -i option).

sudo -u oracle -i

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>