1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2025-02-20 18:01:33 -05:00

Fix sed command for sudo access (#21)

Adapt sed regexp to variations of sudoers file

Signed-off-by: Welteam <8932313+Welteam@users.noreply.github.com>
This commit is contained in:
Welteam 2022-12-16 20:12:18 +00:00 committed by Sebastian Yonekura
parent d20b149e61
commit 85e29ef5fd

View File

@ -424,7 +424,7 @@ arch-chroot /mnt chown -R $username:users /home/${username}/.config
[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd "$username"
# Giving wheel user sudo access.
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /mnt/etc/sudoers
sed -i 's/# \(%wheel ALL=(ALL\(:ALL\|\)) ALL\)/\1/g' /mnt/etc/sudoers
# Change audit logging group
echo "log_group = audit" >> /mnt/etc/audit/auditd.conf