
Provide log access to users of the groups sys_admin, sys_configurator, sys_operator, and sys_reader. This change adds read permission so that the users of sys_* groups can access logs at /var/log Test Plan: PASS: Build iso and deploy. PASS: AIO-SX: create a user and add to sys_operator group. Verify if the user have access to log files. Ensure the user can view the log files using cat/less and edit them using vim. PASS: AIO-SX: create a user and add to sys_reader group. Verify if the user have access to log files. Ensure the user can view the log files using cat/less and edit them using vim. PASS: AIO-SX: create a user and add to sys_configurator group. Verify if the user have access to log files. Ensure the user can view the log files using cat/less and edit them using vim. PASS: AIO-SX: create a user and add to sys_admin group. Verify if the user have access to log files. Ensure the user can view the log files using cat/less and edit them using vim. Story: 2011241 Task: 51208 Depends-On: https://review.opendev.org/c/starlingx/stx-puppet/+/932168 Change-Id: Icaeca4559cd84d3843fe2024430ff5726640cae6 Signed-off-by: Jagatguru Prasad Mishra <jagatguruprasad.mishra@windriver.com>
14 lines
312 B
Bash
14 lines
312 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cp /usr/share/starlingx/sysadmin.sudo /etc/sudoers.d/sysadmin
|
|
cp /usr/share/starlingx/logs.sudo /etc/sudoers.d/logs
|
|
cp /usr/share/starlingx/sys_admin.sudo /etc/sudoers.d/sys_admin
|
|
|
|
chmod 440 /etc/sudoers.d/sysadmin
|
|
chmod 440 /etc/sudoers.d/logs
|
|
chmod 440 /etc/sudoers.d/sys_admin
|
|
|
|
#DEBHELPER#
|