mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-08-10 00:09:35 +00:00
feat: use sudo-rs in install_arch
This commit is contained in:
parent
95bc81cd2c
commit
b9b3329027
1 changed files with 8 additions and 2 deletions
10
install_arch
10
install_arch
|
|
@ -145,9 +145,15 @@ function add_lvm2_mkinitcpio_hook -a is_encrypt
|
|||
end
|
||||
|
||||
function configure_sudo
|
||||
log 'Adding and configuring wheel group'
|
||||
install sudo
|
||||
log 'Installing and configuring sudo'
|
||||
install sudo sudo-rs
|
||||
|
||||
ln -s /usr/bin/su-rs /usr/local/bin/su
|
||||
ln -s /usr/bin/sudo-rs /usr/local/bin/sudo
|
||||
ln -s /usr/bin/sudoedit-rs /usr/local/bin/sudoedit
|
||||
ln -s /usr/bin/visudo-rs /usr/local/bin/visudo
|
||||
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
|
||||
sed -i 's/Defaults!\/usr\/bin\/visudo/Defaults!\/usr\/local\/bin\/visudo/' /etc/sudoers
|
||||
end
|
||||
|
||||
function create_admin_user -a username pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue