Another thing I do from time to time is to change my host name, as I must share a network with many other people. The administrators of this network insist on using a ridiculously insecure password, which doubtless could be cracked by a script kiddie in a few minutes; moreover, the password has never been changed in at least 7 or 8 years. Myself and others have recommended changing the password, but nothing happens.
After I did a little messing with that program that Nik suggested, nmtui, I wondered what else I might use it to do. I like these stone tools; once one has figured out the basics, then at least there is the possibility of controlling the machine.
Even before I started this thread -- or the previous thread which spawned it, regarding my network problems, or tdenetworkmanager -- I was wondering about this problem of the hostname. Is there a way to change my hostname easily, without reinstalling my system? This (nmtui) seems like the right tool for the job; although of course, when running Linux, there are sure to be dozens of others that do the same or similar.
These are probably stupid questions, and a thousand people out there can answer it: but the man pages do not cover these possibilities.
I want to know, first, if one ought to disconnect from internet (or to connect) when changing the hostname like this. It seems to me that trying to change the hostname on a live connection may cause problems. On the other hand, when I am doing a fresh installation, I must set the hostname on a live connection, but then it is a new, unnamed connection.
Second, should I run nmtui (or similar tool) as root in order to change my hostname? When I tried it out earlier, it seemed like it could do nothing with my connection unless I was running as root; but then, before my fresh installation, I could not use tdenetworkmanager, could not use internet at all, except as root. Can I, in ordinary circumstances, change my hostname without first becoming root?
After I change my host name (that is, after a fresh installation), I seem to have no problems for a while. What I want is to be able to change the hostname periodically, without doing a complete new installation.
Also, I block pings with my firewall, that kind of thing, but eventually these problems start up again, because some people out there (or their automated cracking scripts) apparently have nothing better to do than to search for vulnerabilities in other people's machines.
All ideas or suggestions are welcome.
Bill
On Sat February 3 2024 10:53:08 William Morder via tde-users wrote:
Another thing I do from time to time is to change my host name, as I must share a network with many other people. The administrators of this network insist on using a ridiculously insecure password, which doubtless could be cracked by a script kiddie in a few minutes; moreover, the password has never been changed in at least 7 or 8 years. Myself and others have recommended changing the password, but nothing happens.
If hackers can get into your local network they can use IP addresses. They don't need hostnames. Changing your hostname doesn't stop them.
In fact unless you're also changing DNS your machine may be the only machine that knows its own hostname so changing the hostname is not even visible to attackers.
The disease a VPN cures.
dep Pictures: http://www.ipernity.com/doc/depscribe/album Column: https://ofb.biz/author/dep/
-------- Original Message -------- On Feb 3, 2024, 15:28, Mike Bird via tde-users wrote:
On Sat February 3 2024 10:53:08 William Morder via tde-users wrote: > Another thing I do from time to time is to change my host name, as I must > share a network with many other people. The administrators of this network > insist on using a ridiculously insecure password, which doubtless could be > cracked by a script kiddie in a few minutes; moreover, the password has > never been changed in at least 7 or 8 years. Myself and others have > recommended changing the password, but nothing happens. If hackers can get into your local network they can use IP addresses. They don't need hostnames. Changing your hostname doesn't stop them. In fact unless you're also changing DNS your machine may be the only machine that knows its own hostname so changing the hostname is not even visible to attackers. ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Sat February 3 2024 13:58:07 dep via tde-users wrote:
The disease a VPN cures.
A VPN adds another IP address and therefore another attack surface.
It does not block attackers on your LAN.
I use openVPN (with BGP and multiple gateways for redundancy) for various $reasons but preventing local attacks is not one of them.
Bill,
Am 03.Feb.2024 um 18:53 you wrote:
I want to know, first, if one ought to disconnect from internet (or to connect) when changing the hostname like this.... Second, should I run nmtui (or similar tool) as root in order to change my hostname?
From https://www.wikihow.com/Change-Hostname-on-Linux [ Run the command sudo hostnamectl set-hostname newhostname. Replace newhostname with the hostname you'd like to set. Once you run the command, your Linux hostname will be changed immediately. This command changes the static (standard), transient (dynamic), and pretty (descriptive) hostnames all at once. If you only want to change one type of hostname, you can use the --static, --transient, and --pretty options. Static and transient hostnames can contain letters, numbers, and hyphens only.[2] Run the hostname command to see your new hostname. If the hostname hasn't changed run the command sudo systemctl restart systemd-hostnamed to restart systemd-hostnamed.]
Regards, Peter.
On Sunday 04 February 2024 12:23:16 phiebie--- via tde-users wrote:
[ Run the command sudo hostnamectl set-hostname newhostname. Replace newhostname with the hostname you'd like to set. Once you run the command, your Linux hostname will be changed immediately. This command changes the static (standard), transient (dynamic), and pretty (descriptive) hostnames all at once. If you only want to change one type of hostname, you can use the --static, --transient, and --pretty options. Static and transient hostnames can contain letters, numbers, and hyphens only.[2] Run the hostname command to see your new hostname. If the hostname hasn't changed run the command sudo systemctl restart systemd-hostnamed to restart systemd-hostnamed.]
Hello, Peter,
Thank you very much! With this and the suggestion of similar tools by Nik, I believe I have enough information to go on from here.
It's odd that I could not find pages like this when I searched. I probably did not phrase my question just right for DDG, but I have a hard time trying to think like a machine, or to behave like an algorithm.
Bill