E
E
elisey4742015-09-20 11:18:56
linux
elisey474, 2015-09-20 11:18:56

How to disable sudo to a specific user?

How to disable sudo to a specific user?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sim3x, 2015-09-20
@sim3x

Remove user from sudoers

R
Ruslan Fedoseev, 2015-09-20
@martin74ua

Do not allow this user to runas
Or do you have a user who can sudo su - do? So you won’t forbid anything, because after sudo su - he is a root that can do everything

V
vananiev, 2015-09-20
@vananiev

Try to look in the direction of pam.d, it controls the logic of how sudo works, I think there should be a module to block the action according to your criteria. And if not, then there is an example on the net of how to write such a module yourself (in c++).

S
Sergey N, 2015-09-22
@Albibek

Usually, sudoers allow a group, which includes the necessary users. It is incorrect to act according to the method "allow all, prohibit one" - incorrectly. Figure out who exactly needs sudo access and add them to the group.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question