Root?

3 risposte [Ultimo contenuto]
Martago
Offline
Iscritto: 01/11/2015

Hello,

I am really happy with trisquel, but I have a simple question ...
Why is the root password not set by the trisquel installation?
Should I reset the root password with "sudo passwd root" or is it better for the security to doesn't change it.
On the terminal I can get root access with "sudo -i".

Thanks for help

marioxcc
Offline
Iscritto: 08/13/2014

I think that Trisquel inherits the default from Ubuntu, in which there's no root password (Direct root login is disabled) and instead there's an user which can execute programs as root (Including a shell) using sudo. You can set up a root password anytime, it doesn't has deep security implications. As you probably already know, root exist in any GNU/Linux system and it can't be removed[1]. I *suppose* that Ubuntu does this so that the users use sudo for each root command instead of opening a root shell in order to reduce the changes of accidentally executing commands and root and break the system that way.

[1]: You can remove the line from /etc/passwd, but that will break the system. Also, “init” will still be launched as PID 0, so it has root permissions even if there's no user named “root”.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010
Martago
Offline
Iscritto: 01/11/2015

Thanks for the link.