Skip to main content
13 events
when toggle format what by license comment
Dec 17, 2022 at 9:49 answer added user2480415 timeline score: -1
Dec 9, 2022 at 11:40 comment added Alex Martian @muru, seems you have good idea where to look, on LM21 "use_pty, pwfeedback", on where worked (20.2) only "pwfeedback". However I've tried sudo --stdin and IIRC got same result as just sudo. Why?
Dec 9, 2022 at 6:38 comment added muru What's the output of sudo -l in the chroot where sudo echo a worked?
Dec 9, 2022 at 5:36 comment added Alex Martian same actions done with LM 21 ISO resulted in "sudo: unable to allocate pty: No such device"
Dec 9, 2022 at 5:28 comment added Alex Martian @muru, clear reperformance: booted from Linux Mint 20.2. Cinnamon 64 bit downloaded ISO (via Ventoy replacing quiet splash with toram with legacy boot to be exact, then (optional? - later noted it was mounted after boot already) re-plugged USB to get access to ISO file from system, double-click on ISO file, mounted to say path1. Start terminal Ctrl-Alt-t. 2) mkdir ~/lm ; mount $path1/casper/filesystem.squashfs ~/lm 3) chroot ~/lm /bin/bash 4) sudo echo a output "a" Please let me know if this reperformance is acceptable to you.
Dec 9, 2022 at 3:57 comment added muru Can you reproduce that sudo worked in a chroot without these mounts at all? I don't think it has ever worked that way for me.
Dec 9, 2022 at 3:48 comment added Alex Martian @muru, thanks, it is relevant, I learned couple of things from it and updated the question. However it does not explain under-the hood much and I still want to understand why in one case sudo worked and not the other (both cases started with no mentioned in the answer mounts).
Dec 9, 2022 at 3:44 history edited Alex Martian CC BY-SA 4.0
added 665 characters in body
Dec 9, 2022 at 3:21 review Close votes
Dec 16, 2022 at 3:04
Dec 9, 2022 at 3:06 comment added muru Does this answer your question? Which of proc, sys etc. should be bind-mounted (or not) when chrooting into a "replacement" distribution?
Dec 9, 2022 at 3:02 history edited muru CC BY-SA 4.0
added 6 characters in body
Dec 9, 2022 at 2:46 history edited Alex Martian CC BY-SA 4.0
added 57 characters in body
Dec 9, 2022 at 2:40 history asked Alex Martian CC BY-SA 4.0