Commit 1384970b authored by BrLi's avatar BrLi
Browse files restrict sudoer setting to only allow pacman

parent d98f9d56
......@@ -135,7 +135,7 @@ create_chroot() {
status_start "Setting up /etc/sudoers..."
sudo sh -c "echo '${USER} ALL=(ALL) NOPASSWD: ALL' >> '${chroot_dir}/etc/sudoers'"
sudo sh -c "echo ${USER} ALL=(ALL) NOPASSWD:/usr/bin/pacman >> ${chroot_dir}/etc/sudoers"
msg "Found user: ${USER}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment