mirror of
https://github.com/bhaiest/holoiso.git
synced 2024-11-08 12:22:33 +01:00
Assign proper elevation to user
This commit is contained in:
parent
26625db640
commit
d76dde9c25
@ -311,7 +311,7 @@ base_os_install() {
|
||||
echo -e "${ROOTPASS}\n${ROOTPASS}" | arch-chroot ${HOLO_INSTALL_DIR} passwd root
|
||||
arch-chroot ${HOLO_INSTALL_DIR} useradd --create-home ${HOLOUSER}
|
||||
echo -e "${HOLOPASS}\n${HOLOPASS}" | arch-chroot ${HOLO_INSTALL_DIR} passwd ${HOLOUSER}
|
||||
echo "${HOLOUSER} ALL=(root) NOPASSWD:ALL" > ${HOLO_INSTALL_DIR}/etc/sudoers.d/${HOLOUSER}
|
||||
echo "${HOLOUSER} ALL=(ALL:ALL) ALL" > ${HOLO_INSTALL_DIR}/etc/sudoers.d/${HOLOUSER}
|
||||
chmod 0440 ${HOLO_INSTALL_DIR}/etc/sudoers.d/${HOLOUSER}
|
||||
echo "127.0.1.1 ${HOLOHOSTNAME}" >> ${HOLO_INSTALL_DIR}/etc/hosts
|
||||
sleep 1
|
||||
|
Loading…
Reference in New Issue
Block a user