Please paste the output of the following command here: sudo edit-chroot -all (sudo edit-chroot -c /media/removable/USB\ Drive -all)
name: buster
encrypted: no
Entering /media/removable/USB Drive/chroots/buster...
crouton: version 1-20200724165050~master:08dac970
release: buster
architecture: amd64
xmethod: xorg
targets: lxde,x11,keyboard,core,cli-extra,chrome,audio
host: version 13310.76.0 (Official Build) stable-channel terra
kernel: Linux localhost 4.19.129-09609-gdb2c7bb8c121 #1 SMP PREEMPT Wed Sep 9 00:25:08 PDT 2020 x86_64 GNU/Linux
freon: yes
Unmounting /media/removable/USB Drive/chroots/buster...
startlxde๋ฅผ ์ฌ์ฉํ์ฌ chroot(Debian Buster LXDE)๋ฅผ ์ด ์ ์๊ณ USB ๋๋ผ์ด๋ธ์ ์ค์นํ๋๋ฐ startlxde ํ์ผ์ USB ๋๋ผ์ด๋ธ์ "bin" ํด๋์ ์์ผ๋ฉฐ "chroots" ํด๋๋ ์์ต๋๋ค. ์ด๋ป๊ฒ startlxde๋ฅผ ์คํํ๊ณ ๋ด USB ๋๋ผ์ด๋ธ์์ ๋ฒ์คํฐ๋ฅผ ์คํํ๋์ง ์ด๋ป๊ฒ ํ์ธํฉ๋๊น?
๋ฒ๊ทธ๊ฐ ์๊ณ ์๋ํ ๋๋ก ์ํํ ์ ์์ต๋๋ค.
๋จผ์ ์ธ๋ถ ๋ฏธ๋์ด ์ฅ์น์์ bin ๋ฐ chroot ํ์ ๋๋ ํฐ๋ฆฌ์ ๋ฐ์ดํฐ๋ฅผ ์ค์นํ ๋ฃจํธ ๋๋ ํฐ๋ฆฌ๋ก cd
ํ ์ ์์ต๋๋ค. ๊ทธ๋ฐ ๋ค์ sudo sh ./bin/startlxde
๋ก lxde ๋ฐ์คํฌํ์ ์์ํ์ญ์์ค.
๋์์ด ๋์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค,
- DennisLfromGA
๋จผ์ ์ธ๋ถ ๋ฏธ๋์ด ์ฅ์น์์ bin ๋ฐ chroot ํ์ ๋๋ ํฐ๋ฆฌ์ ๋ฐ์ดํฐ๋ฅผ ์ค์นํ ๋ฃจํธ ๋๋ ํฐ๋ฆฌ๋ก
cd
ํ ์ ์์ต๋๋ค. ๊ทธ๋ฐ ๋ค์sudo sh ./bin/startlxde
๋ก lxde ๋ฐ์คํฌํ์ ์์ํ์ญ์์ค._๋์์ด ๋์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค,_
- DennisLfromGA
sh: 0: Refusing to exec ./startlxde from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md
์ ํจ๊ป ๋ฐํ๋์์ต๋๋ค. ์ด๊ฒ์ ์คํํ ์ ์์์ ์๋ฏธํฉ๋๊น?
๋ค์๊ณผ ๊ฐ์ด ๋ง์ดํธ๋ ์์น์ ๋ฐฉ๋ฒ์ ํ์ธํ์ญ์์ค.
mount | grep /media/removable
๋ง์ดํธ ์ง์ ์ ์ด๋ฆ์ ๊ธฐ๋กํด ๋ก๋๋ค.
๊ทธ๋ฐ ๋ค์ ๋ง์ดํธ ์ต์
์ 'noexec'๊ฐ ํ์๋๋ฉด ๋ค์์ ์ฌ์ฉํ์ฌ ๋ค์ ๋ง์ดํธํฉ๋๋ค.
sudo mount -o remount,exec /media/removable/USB \Drive
๋ง์ดํธ ์ง์ ์ ์ด๋ฆ์ด 'USB ๋๋ผ์ด๋ธ'๊ฐ ์๋ ๊ฒฝ์ฐ ํด๋น ์ด๋ฆ์ ์ฌ์ฉํ์ญ์์ค.
๋์์ด ๋์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค,
- DennisLfromGA
๋ค์๊ณผ ๊ฐ์ด ๋ง์ดํธ๋ ์์น์ ๋ฐฉ๋ฒ์ ํ์ธํ์ญ์์ค.
mount | grep /media/removable
๋ง์ดํธ ์ง์ ์ ์ด๋ฆ์ ๊ธฐ๋กํด ๋ก๋๋ค.
๊ทธ๋ฐ ๋ค์ ๋ง์ดํธ ์ต์ ์ 'noexec'๊ฐ ํ์๋๋ฉด ๋ค์์ ์ฌ์ฉํ์ฌ ๋ค์ ๋ง์ดํธํฉ๋๋ค.
sudo mount -o remount,exec /media/removable/USB \Drive
๋ง์ดํธ ์ง์ ์ ์ด๋ฆ์ด 'USB ๋๋ผ์ด๋ธ'๊ฐ ์๋ ๊ฒฝ์ฐ ํด๋น ์ด๋ฆ์ ์ฌ์ฉํ์ญ์์ค.
_๋์์ด ๋์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค,_
- DennisLfromGA
noexec์ ๋ํด ์๋ฌด ๋ง๋ ํ์ง ์์์ง๋ง ๊ทํ์ ์๋ฃจ์ ์ ๋จ์ง ์์์๋ฅผ ์ฌ์ฉํ์ต๋๋ค! ์ด์ chroot๋ฅผ tarball๋ก ๋ด๋ณด๋ด๋ฉด Debian VM์ผ๋ก ์ค์ ๋ฉ๋๋ค. ์ ๋ง ๊ฐ์ฌํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
noexec์ ๋ํด ์๋ฌด ๋ง๋ ํ์ง ์์์ง๋ง ๊ทํ์ ์๋ฃจ์ ์ ๋จ์ง ์์์๋ฅผ ์ฌ์ฉํ์ต๋๋ค! ์ด์ chroot๋ฅผ tarball๋ก ๋ด๋ณด๋ด๋ฉด Debian VM์ผ๋ก ์ค์ ๋ฉ๋๋ค. ์ ๋ง ๊ฐ์ฌํฉ๋๋ค.