1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-22 01:21:34 -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 GitHub
parent d5e6eaf479
commit 7ff0405c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,7 +393,7 @@ arch-chroot /mnt chown -R $username:$username /home/${username}/.config
[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd "$username" [ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd "$username"
# Giving wheel user sudo access. # 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 # Change audit logging group
echo "log_group = audit" >> /mnt/etc/audit/auditd.conf echo "log_group = audit" >> /mnt/etc/audit/auditd.conf