Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System errors after changing to hostname with a space #34

Open
G33kDude opened this issue Jan 7, 2014 · 3 comments
Open

System errors after changing to hostname with a space #34

G33kDude opened this issue Jan 7, 2014 · 3 comments

Comments

@G33kDude
Copy link

G33kDude commented Jan 7, 2014

When entering an invalid hostname (ie, with a space), it will save the invalid hostname to /etc/hosts, but remove the space (unsure about other characters) and save the changed hostname to /etc/hostname. This causes some funny errors, such as "sudo: unable to resolve host"

Any reason why it doesn't prevent you from entering invalid hostnames in the first place?

@Stonie
Copy link
Contributor

Stonie commented Jan 7, 2014

The warning message is pretty clear: https://github.com/asb/raspi-config/blob/master/raspi-config#L204

But we could probably add some validation...

@G33kDude
Copy link
Author

G33kDude commented Jan 7, 2014

I'm aware of the warning message, but I entered the space without really thinking about it. The large problem is it wouldn't change back after. I had to manually go in and fix the file.

@Stonie
Copy link
Contributor

Stonie commented Jan 7, 2014

Fair point and I bet you are not the only one. I will have a look when I get a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants