start-os icon indicating copy to clipboard operation
start-os copied to clipboard

[bug]: `sudo -i` throws an error (but still works)

Open BitcoinMechanic opened this issue 3 years ago • 6 comments

Prerequisites

  • [X] I have searched for existing issues that already report this problem, without success.

EmbassyOS Version

0.3.1

Device

Laptop/Desktop

Device OS

MacOS

Device OS Version

12.4

Browser

Firefox

Browser Version

101.0.1

Current Behavior

sudo -i
sudo: unable to resolve host embassy-87fa5f10: Name or service not known

image

Expected Behavior

No error

Steps to Reproduce

ssh in using [email protected] and type sudo -i

Anything else?

Feature request for ssh host keys to not change every reflash by @chrisguida edit: @dr-bonez says this is not desirable/doable

BitcoinMechanic avatar Jun 29 '22 18:06 BitcoinMechanic

Can you provide some context for this? Is there a guide that asks for it, for example?

Also, I am unable to reproduce

kn0wmad avatar Jun 29 '22 19:06 kn0wmad

It's because there is no entry for the hostname in /etc/hosts:

root@embassy-96efe32d:~# cat /etc/hosts

127.0.0.1	localhost
::1		localhost ip6-localhost ip6-loopback
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

127.0.1.1		raspberrypi

gStart9 avatar Jun 29 '22 20:06 gStart9

Disappointing that hostnamectl doesn't handle this

dr-bonez avatar Jun 29 '22 23:06 dr-bonez

Although I am more of a fan of sudo -s (I prefer to stay in the directory I'm in) I was not able to replicate this issue on 0.3.1 (244260e34a9152ddd9d8e864f162bc9d112dc178)

k0gen avatar Jul 12 '22 19:07 k0gen

I also was unable to reproduce this on 0.3.1 final. @BitcoinMechanic is this still happening for you?

gStart9 avatar Jul 13 '22 18:07 gStart9

No, it seems to only happen the first time you do it on any particular build.

BitcoinMechanic avatar Jul 13 '22 18:07 BitcoinMechanic