Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installation on new hard disk

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on new hard disk

#21 Post by p.H »

syntone wrote:is it ok to create /boot partition at the first?
It has been reported that some broken UEFI firmwares may require that the EFI partition is first. But I have no such experience.
Also, a separate /boot is useless in most cases and may cause trouble if undersized.

syntone
Posts: 90
Joined: 2014-09-14 19:42

Re: Installation on new hard disk

#22 Post by syntone »

In the installation step when installer asks to provide a name and password for the “root” account: is it better to leave them empty, so the user will be able to get root access?

arzgi
Posts: 1197
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 32 times

Re: Installation on new hard disk

#23 Post by arzgi »

syntone wrote:In the installation step when installer asks to provide a name and password for the “root” account: is it better to leave them empty, so the user will be able to get root access?
If you leave root password empty, the installer will configure sudo for the first user.

You can later add root account if you need.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Installation on new hard disk

#24 Post by Head_on_a_Stick »

You don't need sudo for root access.
deadbang

CwF
Global Moderator
Global Moderator
Posts: 2715
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Installation on new hard disk

#25 Post by CwF »

arzgi wrote: If you leave root password empty, the installer will configure sudo for the first user.

You can later add root account if you need.
Head_on_a_Stick wrote:You don't need sudo for root access.
Is there a chicken and egg here?

I wouldn't know since all my installations are years old, created with a root user, and have graduated through gksu, sudo, and now primarily pkexec.

While pkexec can be used and all of its extensive granularity can be set, it does require root to do so! Once done properly, no root account or sudo substitute is ever needed...

So for the first experience needing root access what is the answer?
1 - if the installer without a root account sets up the user with sudo - it's there already - why declare it not needed? It seems the official answer.
2 - If somehow no root or sudo, impossible? Or is the su always available?

My call is always create a root account on a personal machine. KISS. I prefer to do some things in a tty as root, and if you have the right stuff a complete root DE.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Installation on new hard disk

#26 Post by Head_on_a_Stick »

CwF wrote:is the su always available?
If a root password is entered during the installation then su is available, if no root password is entered then sudo is available for the first user that is created but su is not usable unless a password is set for the root account after installation (or if su is called with sudo but that's just silly).
deadbang

arzgi
Posts: 1197
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 32 times

Re: Installation on new hard disk

#27 Post by arzgi »

Well, I've not needed root after installer made that possible.

But different users have varying needs. there is no golden bullet.

CwF
Global Moderator
Global Moderator
Posts: 2715
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Installation on new hard disk

#28 Post by CwF »

arzgi wrote: Well, I've not needed root after installer made that possible.
You mean 'root proper'?! Using sudo is needing root access, yes? Same goes for a pkexec enabled action, that is needing root access also. Calling root something else doesn't count as not needing root in my book!

So 'sudo' may be the only universal solution without a root account. If pkexec set up some default actions for the first user it would then be the same, but incomplete and much clumsier.

So we hire Peter and fire Paul, to what end? gksu George still feels slighted!

syntone
Posts: 90
Joined: 2014-09-14 19:42

Re: Installation on new hard disk

#29 Post by syntone »

the installer offers to choose to specify or skip root password, then what's the purpose of this option?

CwF
Global Moderator
Global Moderator
Posts: 2715
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Installation on new hard disk

#30 Post by CwF »

syntone wrote: the purpose of this option?
Old argument. Some believe a root account is a security risk. No account, no risk, aka android. There is an obvious logic there true, but it's simpleton logic. Rootless devices are security by obfuscation. The argument should include the intended audience but often doesn't. A personal builder appreciates a root account and that is a minority. A company selling something with an OS would prefer that OS not be easily breakable since they are responsible for support, a majority view overall.

So it's good Debian still offers the choice. It's a good idea to have a trail or log of privileged use rather than the open access of root. It seems every non-root get it done solution has it's own issues, but in a production machine with many users most admins want to keep track somehow, so there is a push to go rootless and use a method to log and track instead of allow anything goes root.

The point forgot by most is the idea of a target. Linux as a personal system is safer than most not because of some technical superiority but because we're not a big target. Windows has the image of weak security because it was the biggest target, until android.

Post Reply