New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Is it safe to change the root password?

Got problems with your B2 or B3? Share and get helped!
Post Reply
ingo2
Posts: 81
Joined: 06 Feb 2012, 10:32

Is it safe to change the root password?

Post by ingo2 »

Just a short question:

may I change the root paasword (for security reasons, I know how to do so), or will it break/prevent some funcitionality probably during upgrade?

I personally think, this is even more important then the admin password.
Kind regards,
Ingo
UNIX is user friendly, it's just picky about who its friends are.
basd82
Posts: 17
Joined: 11 Jan 2012, 12:58

Re: Is it safe to change the root password?

Post by basd82 »

Sure,

no problem i alway do it .

I even disable root password becouse you don't want to login as root.
I login as normal user en use sudo to do somting as root.

With kind regards,

Bas van den Dikkenberg
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Is it safe to change the root password?

Post by Ubi »

that sounds needlessly complex for a headless and console-less machine. Just changing the password into something difficult and disabling the possibility for direct login is more than plenty security for a device like this. Oh and if you're truly paranoid: change the SSH port into something weird.
ingo2
Posts: 81
Joined: 06 Feb 2012, 10:32

Re: Is it safe to change the root password?

Post by ingo2 »

Ubi wrote:Oh and if you're truly paranoid: change the SSH port into something weird.
Don't laugh, that's what I have done on my NAS for login from the internet:
a) disable authentication by password, only allow with SSH-keyfile as normal user., with su get root.
b) change standard port to "somthing nobody expects".

a) is for security
b) is for power saving and HDD life. Once you have SSH on port 22 open to the internet: watch your 'auth.log' and see the script kiddies to flood it with funny attempts. This prohibits my HD from ever spinning down.

Best regards,
Ingo
UNIX is user friendly, it's just picky about who its friends are.
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: Is it safe to change the root password?

Post by Gordon »

That all sounds hopelessly complex and if you were to ask me, hardly adds any security and may even degrade security.

First off you should never allow access to port 22 (or whatever obscure port that does the same) from untrusted addresses. This implies that anyone trying to gain access to your server will have to corrupt a machine that you regard as trusted first, meaning they either have an original password or installed their own. In either case this will grant them access to the stored SSH key that will in turn enable them access to the server.


If you're paranoid you can even change the name of root (e.g. carrot), but there's hardly any sense in that since the normal behaviour is to block root access from logging in directly through SSH and `su 0` will always make you root regardless of what it was renamed to. Remember that the best way to protect a computer from misuse is to pour it in concrete and sink it off to the ocean. The problem is that this also prevents you to use it, which brings in second best to prevent console access and that happens to be a key feature of the B3. Third is to restrict network access. Really: all the other stuff is just people trying to be fancy and mostly succeeds in just annoying other people.
ingo2
Posts: 81
Joined: 06 Feb 2012, 10:32

Re: Is it safe to change the root password?

Post by ingo2 »

Gordon wrote: If you're paranoid you can even change the name of root (e.g. carrot), but there's hardly any sense in that since the normal behaviour is to block root access from logging in directly through SSH and `su 0` will always make you root regardless of what it was renamed to.
I just tried on my PC running Squeeze-amd64:

Code: Select all

ingo@pp:~$ su 0
Unbekannte ID: 0
Just 'su' works fine (translation: unbekannte = unknown).

Kind regards,
Ingo
UNIX is user friendly, it's just picky about who its friends are.
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: Is it safe to change the root password?

Post by Gordon »

My bad - wrong interface and trying to be fancy myself. The command 'su' without arguments will make you user 0, which is root by any name.

I can read German BTW :wink:
oliver

Re: Is it safe to change the root password?

Post by oliver »

of course you should change your root password. But don´t use a simple password like "12345" :mrgreen:
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Is it safe to change the root password?

Post by Ubi »

12345? That's amazing! I've got the same combination on my luggage!!
oliver

Re: Is it safe to change the root password?

Post by oliver »

Ubi wrote:12345? That's amazing! I've got the same combination on my luggage!!
I am quite sure Anonymous was hacking you already :mrgreen:
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Is it safe to change the root password?

Post by RandomUsername »

Ubi wrote:12345? That's amazing! I've got the same combination on my luggage!!
May the Schwartz be with you!
Post Reply