리눅스 관련/기본 개념2 일반 사용자에게 sudo 권한 부여 ( sudoers.d ) 매번 sudo 안써도 되게끔 일반 사용자에게 sudo 권한 부여 하는 방법보안상 권장되지 않음일반 사용자 sudo 권한 부여 스크립트#!/bin/bashset -e # 하나라도 실패시 bash 종료set -x # 무슨명령어 실행되는지 확인# ----------------------------------------------------------------------------------------------------------USER_NAME=$(cat /etc/group | grep 1000 | cut -d: -f1)echo "USER_NAME : ${USER_NAME}"echo "$USER_NAME ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/$USER_NAMEls /e.. 2024. 5. 6. sudo란 ?, UID 랑 GID (/etc/group,/etc/passwd) https://www.systranbox.com/where-is-sudo-file-in-linux/ Where Is Sudo File In Linux? – Systran Box Watch Where Is Sudo File In Linux Video www.systranbox.com https://www.youtube.com/watch?v=YSSIm0g00m4 Where Is Sudo Installed On Linux? You can usually find sudoers in /etc/sudoers as the file used for setting up a system. Note the default and “must be” permissions of a /etc/sudoers file as well a.. 2022. 6. 1. 이전 1 다음