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

Fix serialdev permissions for older distribution versions using group "tty" #4163

Merged
merged 1 commit into from
Jan 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ sub ensure_serialdev_permissions {
# ownership has effect immediately, group change is for effect after
# reboot an alternative https://superuser.com/a/609141/327890 would need
# handling of optional sudo password prompt within the exec
assert_script_run "chown $testapi::username /dev/$testapi::serialdev && gpasswd -a $testapi::username dialout";
assert_script_run "chown $testapi::username /dev/$testapi::serialdev && gpasswd -a $testapi::username \$(stat -c %G /dev/$testapi::serialdev)";
}

1;
Expand Down