D
D
ddkkie2020-01-15 14:04:34
linux
ddkkie, 2020-01-15 14:04:34

Restricting access to the system?

The book provides several examples of editing the /etc/security/access.conf file. For example, entries such as - : ALL EXCEPT root : tty1 or - : root : ALL . But after adding, for example, - : root : ALL , I still have the ability to log into the system, whether in console or graphical mode.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
CityCat4, 2020-01-16
@CityCat4

What is the purpose of all this?
- access.conf may not be used
- the restriction is usually done through pam
- if you have a console and unpassworded grub, demolishing all such "bells and whistles" is a matter of five minutes

V
Vitaly Karasik, 2020-01-15
@vitaly_il1

Check with another user.
Perhaps access.conf is not checked for root by default. (you need to look in /etc/pam.d/configs to check)

S
Sergey, 2020-01-23
Zhumatiy @zhum

PAM is responsible for access rights. The rule allowing root is obviously higher in the list than the rule checking access.conf.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question