Really dislike the new root/sudo setup, does anyone else?

Questions about the project and the distribution - obviously no support questions here please
rene
Level 12
Level 12
Posts: 4171
Joined: Sun Mar 27, 2016 6:58 pm

Re: Really dislike the new root/sudo setup, does anyone else?

Post by rene » Mon Oct 07, 2019 11:37 am

VapinPagan wrote:
Sun Oct 06, 2019 9:08 pm
When I install I already know everything I need to setup and install and thus I end up putting in my password for sudo 50 million times. Perhaps I will just start making a temp root login during setup. What do you think?
That root logins are overrated. As mentioned also above, if you are talking about actual sudo, opening a root shell with sudo -i will do; assuming you are not but are talking about the GUI authentication prompts: you can, temporarily or permanently as to liking, disable those for locally logged-in "administrative users" by creating a file e.g. /etc/polkit-1/localauthority/50-local.d/admin.pkla consisting of

Code: Select all

[admin]
Identity=unix-user:0;unix-group:sudo;unix-group:admin
Action=*
ResultActive=yes
Restoring the normal situation is of course a simple matter of deleting that file again or, say, mv it out the way to /etc/polkit-1/localauthority/50-local.d/admin.pkla.disabled.

athi
Level 6
Level 6
Posts: 1461
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Really dislike the new root/sudo setup, does anyone else?

Post by athi » Mon Oct 07, 2019 12:01 pm

smurphos wrote:
Mon Oct 07, 2019 12:40 am
Without unlocking the root account you can also sudo -i - this opens a login shell as root.
smurphos, what is the difference between sudo -i and sudo -s? Read the man page and cannot understand the difference.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

VapinPagan
Level 1
Level 1
Posts: 12
Joined: Sun Oct 06, 2019 8:36 pm

Re: Really dislike the new root/sudo setup, does anyone else?

Post by VapinPagan » Mon Oct 07, 2019 12:06 pm

LOL fair enough. =)

rene
Level 12
Level 12
Posts: 4171
Joined: Sun Mar 27, 2016 6:58 pm

Re: Really dislike the new root/sudo setup, does anyone else?

Post by rene » Mon Oct 07, 2019 12:13 pm

athi wrote:
Mon Oct 07, 2019 12:01 pm
smurphos, what is the difference between sudo -i and sudo -s? Read the man page and cannot understand the difference.
You specifically asked smurphos, but the difference is sudo -s launching a "normal" shell and sudo -i launching a login shell; man bash will under primarily the INVOCATION header make explicit what this in the case of bash means as to startup and shutdown behaviour. But more compactly: sudo -i will have your environment more like a an actual shell environment root would've gotten had root in fact logged in. Try for example echo $HOME from a root shell launched through either method. Generally speaking, sudo -i is to be preferred so as to lessen potential of surprises if you are not aware in advance as to what said surprises might be.

athi
Level 6
Level 6
Posts: 1461
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Really dislike the new root/sudo setup, does anyone else?

Post by athi » Mon Oct 07, 2019 12:23 pm

rene wrote:
Mon Oct 07, 2019 12:13 pm
athi wrote:
Mon Oct 07, 2019 12:01 pm
smurphos, what is the difference between sudo -i and sudo -s? Read the man page and cannot understand the difference.
You specifically asked smurphos, but the difference is sudo -s launching a "normal" shell and sudo -i launching a login shell; man bash will under primarily the INVOCATION header make explicit what this in the case of bash means as to startup and shutdown behaviour. But more compactly: sudo -i will have your environment more like a an actual shell environment root would've gotten had root in fact logged in. Try for example echo $HOME from a root shell launched through either method. Generally speaking, sudo -i is to be preferred so as to lessen potential of surprises if you are not aware in advance as to what said surprises might be.
Thank you, rene. Not a fan of surprises, sudo -i it is.
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

rene
Level 12
Level 12
Posts: 4171
Joined: Sun Mar 27, 2016 6:58 pm

Re: Really dislike the new root/sudo setup, does anyone else?

Post by rene » Mon Oct 07, 2019 12:24 pm

athi wrote:
Mon Oct 07, 2019 12:23 pm
Not a fan of surprises
Bóóóring.

athi
Level 6
Level 6
Posts: 1461
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Really dislike the new root/sudo setup, does anyone else?

Post by athi » Mon Oct 07, 2019 12:31 pm

rene wrote:
Mon Oct 07, 2019 12:24 pm
athi wrote:
Mon Oct 07, 2019 12:23 pm
Not a fan of surprises
Bóóóring.
Guilty as charged :)
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

jglen490
Level 5
Level 5
Posts: 643
Joined: Sat Jul 15, 2017 9:57 pm

Re: Really dislike the new root/sudo setup, does anyone else?

Post by jglen490 » Mon Oct 07, 2019 9:24 pm

VapinPagan wrote:
Sun Oct 06, 2019 8:45 pm
So I really miss the days when I could just sign in as root and get stuff done without having to sudo every freaking time I do anything. I would rather things be like the old days where I have a REAL root login and a user login.

Just wondering, does anyone else find this new system annoying?
Sheesh, so much for cyber security ...
I feel more like I do than I did when I got here.
Toshiba A135-S2386, Intel T2080, ATI Radeon® Xpress 200M Chipset, 2GB RAM, 500GB

User avatar
Spearmint2
Level 16
Level 16
Posts: 6780
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Really dislike the new root/sudo setup, does anyone else?

Post by Spearmint2 » Mon Oct 07, 2019 10:17 pm

There are still pencils and paper.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

Post Reply

Return to “Non-technical Questions”