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

Remove OS Login users from admin groups. #29

merged 1 commit into from Apr 27, 2020
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion google_oslogin_control
Expand Up @@ -265,7 +265,7 @@ modify_group_conf() {

local group_config="${1:-${group_config}}"
local group_conf_entry="sshd;*;*;Al0000-2400;adm,dip,docker,lxd,plugdev,video"
local group_conf_entry="sshd;*;*;Al0000-2400;dip,plugdev,video"

if ! grep -q "$group_conf_entry" "$group_config"; then
$sed -i"" "\$a ${added_comment}\n${group_conf_entry}" "$group_config"
Expand Down