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

 

 

 

Sudo or not sudo?

Here you can discuss every aspect of Debian. Note: not for support requests!
Message
Author
User avatar
hrsetrdr
Posts: 181
Joined: 2007-03-17 15:14
Has thanked: 1 time

Re: Sudo or not sudo?

#31 Post by hrsetrdr »

Onsemeliot wrote:. You still can get it by not creating a root user
I must have been distracted and used the Graphical Install instead of the normal installer.
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein).

MALsPa
Posts: 678
Joined: 2007-12-07 19:20
Location: albuquerque
Been thanked: 2 times

Re: Sudo or not sudo?

#32 Post by MALsPa »

hrsetrdr wrote:
Onsemeliot wrote:. You still can get it by not creating a root user
I must have been distracted and used the Graphical Install instead of the normal installer.
That part wouldn't matter -- when the user goes with the Graphical install option and the Root password is left blank, you get sudo.

User avatar
kalle123
Posts: 346
Joined: 2015-03-21 11:17
Location: Rhineland - Germany
Has thanked: 4 times
Been thanked: 11 times

Re: Sudo or not sudo?

#33 Post by kalle123 »

Maybe this text should be revised then ...
'You need to set'
Image

br KH

milomak
Posts: 2160
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: Sudo or not sudo?

#34 Post by milomak »

it is quite clear about what happens when you don't set the password

there is no need to prescriptive

i install sudo and have it use the root password. becomes sometimes i just want to run one command as root.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

BradleyGuerr
Posts: 2
Joined: 2020-10-24 17:34

Re: Sudo or not sudo?

#35 Post by BradleyGuerr »

zocsli62 wrote:Why is it not preferable to use sudo by default in Debian?
it is preferable to use sudo by default in Debian. :D

User avatar
hrsetrdr
Posts: 181
Joined: 2007-03-17 15:14
Has thanked: 1 time

Re: Sudo or not sudo?

#36 Post by hrsetrdr »

MALsPa wrote:
hrsetrdr wrote:
Onsemeliot wrote:. You still can get it by not creating a root user
I must have been distracted and used the Graphical Install instead of the normal installer.
That part wouldn't matter -- when the user goes with the Graphical install option and the Root password is left blank, you get sudo.
The installer has changed in recent times, an installation would not have progressed if the root password had not been set up.
BradleyGuerr wrote:
zocsli62 wrote:Why is it not preferable to use sudo by default in Debian?
it is preferable to use sudo by default in Debian. :D
Interesting, not so many years ago Debian users were appalled by Ubuntu's default use of sudo.
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein).

MALsPa
Posts: 678
Joined: 2007-12-07 19:20
Location: albuquerque
Been thanked: 2 times

Re: Sudo or not sudo?

#37 Post by MALsPa »

hrsetrdr wrote:
The installer has changed in recent times, an installation would not have progressed if the root password had not been set up.
My most recent installation was a Buster netinstall in September. I used the Graphical install option and left the Root password blank. The installation did indeed proceed, no Root account, was set, and I'm using sudo on that system. I used this iso: firmware-10.1.0-amd64-netinst.iso

So something has changed since last month? I seriously doubt that.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Sudo or not sudo?

#38 Post by sunrat »

BradleyGuerr wrote:
zocsli62 wrote:Why is it not preferable to use sudo by default in Debian?
it is preferable to use sudo by default in Debian. :D
It's a personal choice, not universally preferable. Ultimately it makes zero difference to the rest of the system.
sudo allows fine-grained control of administrative commands in multi-user systems which may be useful for some.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
hrsetrdr
Posts: 181
Joined: 2007-03-17 15:14
Has thanked: 1 time

Re: Sudo or not sudo?

#39 Post by hrsetrdr »

MALsPa wrote:
hrsetrdr wrote:
The installer has changed in recent times, an installation would not have progressed if the root password had not been set up.
So something has changed since last month? I seriously doubt that.
Not last month, "recent times" meaning sometime in the last few years.
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein).

streamvn
Posts: 1
Joined: 2020-11-04 02:42

Re: Sudo or not sudo?

#40 Post by streamvn »

Bulkley wrote:Personally, I don't like sudo. To me, it's a cheat.
I'm like you, I don't like sudo either

Islander
Posts: 42
Joined: 2020-10-20 08:29
Has thanked: 16 times
Been thanked: 1 time

Re: Sudo or not sudo?

#41 Post by Islander »

Dai_trying wrote:I can't directly answer your question but I just wanted to point out that sudo is the default if you do not enter a root password when installing.
I've been using Debian on and off for a decade or two, and I had no idea you could do that!

Thanks!

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1490
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 58 times

Re: Sudo or not sudo?

#42 Post by oswaldkelso »

I don't use sudo but I do have the lighter and simpler "doas" utility on my Gentoo machine. I couldn't see a package on Debian but no doubt one will exist.

https://github.com/slicer69/doas
https://i-bsd.com/doas/
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

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

Re: Sudo or not sudo?

#43 Post by Head_on_a_Stick »

oswaldkelso wrote:I couldn't see a package on Debian but no doubt one will exist
Unfortunately not, I've checked all the WNPP lists :(

I have packaged it up myself but I'm not comfortable sharing such a security-critical application — my packaging skills are not the best, sadly.
deadbang

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Sudo or not sudo?

#44 Post by Hallvor »

I haven't used sudo since my Ubuntu days, some 14 years ago. I tried sudo again today on a "new" computer, using the command "sudo su -" to enter the root environment with the user password. I like it so far.

Edit: Came across this. Are the points still valid?

https://www.openwall.com/lists/owl-users/2004/10/20/6
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: Sudo or not sudo?

#45 Post by edbarx »

People communicate using words grammatically arranged in sentences, paragraphs, chapters and even books. Yet, some peope find it difficult to use a textual command in a terminal! I cannot understand, struggling with a maze of graphical windows is harder to me, especially, those 'new age' little images, which expect users to remember what they stand for. Using a dumb-phone, err no, a smart-phone, is one such glaring example. Humanity has evolved to use languages, use those. However, it seems, the whole world is at full speed to go back to when it only communcated using body movements and images.

Sorry, I cannot understand this perverted form of progress.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

Re: Sudo or not sudo?

#46 Post by LE_746F6D617A7A69 »

Hi edbarx - it's good to see that You're still around ;)

1. I was really surprised when for the first time I've reviewed the sudo program code - it is unbelievably big and complex program.
IMO using sudo is far more safe than direct usage of root account, f.e. because by default it limits the time for password-less access with root privileges.

2. The UINX language (IMO) is the most advanced method for users to interact with the computer. The problem is, just like in case of any other foreign language, that the users have to learn it.
Most of people are *not* willing to use command line interface, because they don't know the UNIX philosophy: knowing only a few tens of "words" from the UNIX language allows to "ask" the system to do just anything, starting from listing directory entries and ending with complex OS queries, similarly to what SQL offers -> the only limit for the query content is the user's imagination.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

Post Reply