Restrict root to su local accounts
1
vote
0
answers
73
views
I know that root can modify any config file.
As a best practice, I would like to disable the capacity for root to su on accounts which authenticates against NIS or Active Directory.
As a best practice, I would like to allow root to su only on local accounts. *My* definition of a local account is any line with an id in /etc/passwd (because of the
+user::::::
for NIS access).
I guess it would involve modifying the pam config, but I'm not clear on the how.
Asked by Mat M
(143 rep)
Jun 22, 2021, 10:06 AM