Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict the use of su #41

Closed
olavim opened this issue Sep 1, 2019 · 1 comment
Closed

Restrict the use of su #41

olavim opened this issue Sep 1, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@olavim
Copy link

olavim commented Sep 1, 2019

A bad-actor who has gained access to an account without sudo privileges can still try to login as such with su.

Here's an article about limiting who can use of su: https://www.cyberciti.biz/tips/restrict-the-use-of-su-command.html

The article tells you to add users, who you want to be able to use su, to the wheel group, and editing the PAM config file at /etc/pam.d/su appropriately. However at least in Ubuntu I had to add these users to the root group instead, so the steps needed might vary between distros.

@imthenachoman imthenachoman self-assigned this Sep 9, 2019
@imthenachoman imthenachoman added the enhancement New feature or request label Sep 9, 2019
@imthenachoman
Copy link
Owner

Adding. Thanks!

imthenachoman added a commit that referenced this issue Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants