내 명령은 sudo /bin/su USER_2
실패했지만 sudo /bin/su - USER_2
성공했습니다.
죄송합니다. 사용자 USER_1은 SERVER에서 루트로 "/bin/su USER_2"을(를) 실행할 수 없습니다.
확인할 때 sudo -l
:
USER_1@SERVER:~:$ sudo -l
Matching Defaults entries for USER_1 on SERVER:
syslog=auth, log_year, logfile=/var/log/sudo.log, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES
LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
User USER_1 may run the following commands on SERVER:
(ALL) NOPASSWD: ALL, !/usr/bin/sudoedit, !/usr/sbin/visudo, !/sbin/sulogin, !/sbin/sushell, !/bin/su, !/bin/su -, /bin/su [-] *, !/bin/su - *root, !/bin/su root, !/sbin/insmod, !/sbin/rmmod, !/sbin/depmod, !/sbin/modprobe, !/sbin/shutdown,
!/sbin/poweroff, !/usr/bin/reboot, !/usr/bin/consolehelper, !/usr/bin/halt, !/sbin/init
USER_1님에게 실행 권한 이 있는 것 같습니다 !/bin/su, !/bin/su -
./bin/su [-] *
(무슨 뜻이에요 !
?: not
)
/bin/su USER
및 을 허용해야 합니다 /bin/su - USER
.
왜 실패했나요 sudo su USER_2
?