mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-13 21:51: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:
parent
d5e6eaf479
commit
7ff0405c60
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user