Re: Yet Another New systemd Feature

Liste des GroupesRevenir à ol misc 
Sujet : Re: Yet Another New systemd Feature
De : robin_listas (at) *nospam* es.invalid (Carlos E.R.)
Groupes : comp.os.linux.misc
Date : 09. May 2024, 11:08:32
Autres entêtes
Message-ID : <gdgugkx5rf.ln2@Telcontar.valinor>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 2024-05-09 03:31, Grant Taylor wrote:
On 5/8/24 13:32, Carlos E.R. wrote:
Mmm? What is the advantage?
 It really depends on what command you do use and what the target user's account is configured with.
 `sudo -i` starts the target user's login shell directly.  So it might be comparable to `sudo bash` if the target user's shell is bash, but will be different if the target user doesn't have bash as their default shell.
 I have aliases `si` to `sudo -i` and `s` to `sudo`.  So `si` and `s` are shorter to type and I prefer them.
 
I also don't know about it. Why should I use it?
 I went on a bit of an embrace and extend sudo to make it streamlined for the environments that I work in.
 I've also configured sudo on my personal systems to be able to authenticate to sudo with my ssh key.
 I've also created a wrapper that I have in my ~/bin directory that keys off of $0 as to what command to pass to sudo.  So I have ~/bin/ifconfig -> ~/bin/sudo.wrapper so that I can simply type `ifconfig` as my user and it's run with sudo.  It's also authenticated by my ssh key so I'm not prompted for a password.
 I'm embracing sudo and making it work for -> do things for me in a way that I don't even need to think about it.
 I'd have to stop and think about how much, if any, of that could be replaced with something other than sudo.  But seeing as how sudo is standard on the Linux, FreeBSD, Solaris, and AIX systems I work with, I'm somewhat reluctant to find an alternative.  Though I do try to keep an open mind and learn about other options.
Me, I use "su -" and keep a terminal open as that user. I seldom use sudo, usually in scripts.
--
Cheers, Carlos.

Date Sujet#  Auteur
6 May 24 * Yet Another New systemd Feature134Lawrence D'Oliveiro
6 May 24 `* Re: Yet Another New systemd Feature133The Natural Philosopher
6 May 24  +- Re: Yet Another New systemd Feature1Carlos E.R.
6 May 24  +* Re: Yet Another New systemd Feature18Lawrence D'Oliveiro
6 May 24  i+* Re: Yet Another New systemd Feature7Kyonshi
6 May 24  ii+* Re: Yet Another New systemd Feature5The Natural Philosopher
6 May 24  iii`* Re: Yet Another New systemd Feature4Kyonshi
6 May 24  iii +- Re: Yet Another New systemd Feature1Carlos E.R.
6 May 24  iii +- Re: Yet Another New systemd Feature1Grant Taylor
6 May 24  iii `- Re: Yet Another New systemd Feature1The Natural Philosopher
6 May 24  ii`- Re: Yet Another New systemd Feature1Lawrence D'Oliveiro
6 May 24  i`* Re: Yet Another New systemd Feature10The Natural Philosopher
6 May 24  i +* Re: Yet Another New systemd Feature6yeti
6 May 24  i i`* Re: Yet Another New systemd Feature5John McCue
7 May 24  i i `* Re: Yet Another New systemd Feature4Carlos E.R.
7 May 24  i i  +* Re: Yet Another New systemd Feature2The Natural Philosopher
7 May 24  i i  i`- Re: Yet Another New systemd Feature1Joe Beanfish
8 May 24  i i  `- Re: Yet Another New systemd Feature1The Natural Philosopher
6 May 24  i +- Re: Yet Another New systemd Feature1G
6 May 24  i `* Re: Yet Another New systemd Feature2Lawrence D'Oliveiro
7 May 24  i  `- Re: Yet Another New systemd Feature1The Natural Philosopher
6 May 24  `* Re: Yet Another New systemd Feature113Andy Burns
6 May 24   +* Re: Yet Another New systemd Feature106The Natural Philosopher
6 May 24   i+- Re: Yet Another New systemd Feature1Grant Taylor
6 May 24   i+* Re: Yet Another New systemd Feature67Andy Burns
7 May 24   ii`* Re: Yet Another New systemd Feature66Grant Taylor
7 May 24   ii `* Re: Yet Another New systemd Feature65Richard Kettlewell
7 May 24   ii  `* Re: Yet Another New systemd Feature64Grant Taylor
8 May 24   ii   `* Re: Yet Another New systemd Feature63Richard Kettlewell
8 May 24   ii    +- Re: Yet Another New systemd Feature1Lawrence D'Oliveiro
8 May 24   ii    `* Re: Yet Another New systemd Feature61The Natural Philosopher
8 May 24   ii     +* Re: Yet Another New systemd Feature4Richard Kettlewell
8 May 24   ii     i`* Re: Yet Another New systemd Feature3The Natural Philosopher
9 May 24   ii     i `* Re: Yet Another New systemd Feature2Richard Kettlewell
9 May 24   ii     i  `- Re: Yet Another New systemd Feature1vallor
8 May 24   ii     `* Re: Yet Another New systemd Feature56Lawrence D'Oliveiro
9 May 24   ii      `* Re: Yet Another New systemd Feature55The Natural Philosopher
10 May 24   ii       `* Re: Yet Another New systemd Feature54Lawrence D'Oliveiro
10 May 24   ii        `* Re: Yet Another New systemd Feature53The Natural Philosopher
10 May 24   ii         `* Re: Yet Another New systemd Feature52Lawrence D'Oliveiro
11 May 24   ii          +* Re: Yet Another New systemd Feature32The Natural Philosopher
11 May 24   ii          i`* Re: Yet Another New systemd Feature31Lawrence D'Oliveiro
11 May 24   ii          i `* Re: Yet Another New systemd Feature30The Natural Philosopher
11 May 24   ii          i  +- Re: Yet Another New systemd Feature1D
12 May 24   ii          i  `* Re: Yet Another New systemd Feature28Lawrence D'Oliveiro
12 May 24   ii          i   `* Re: Yet Another New systemd Feature27The Natural Philosopher
12 May 24   ii          i    +* Re: Yet Another New systemd Feature21Lawrence D'Oliveiro
12 May 24   ii          i    i+* Re: Yet Another New systemd Feature11D
12 May 24   ii          i    ii`* Re: Yet Another New systemd Feature10Lawrence D'Oliveiro
13 May 24   ii          i    ii `* Re: Yet Another New systemd Feature9D
14 May 24   ii          i    ii  `* Re: Yet Another New systemd Feature8Lawrence D'Oliveiro
14 May 24   ii          i    ii   `* Re: Yet Another New systemd Feature7D
27 May 24   ii          i    ii    `* Re: Yet Another New systemd Feature6Lawrence D'Oliveiro
27 May 24   ii          i    ii     `* Re: Yet Another New systemd Feature5The Natural Philosopher
28 May 24   ii          i    ii      `* Re: Yet Another New systemd Feature4Carlos E.R.
28 May 24   ii          i    ii       `* Re: Yet Another New systemd Feature3The Natural Philosopher
28 May 24   ii          i    ii        `* Re: Yet Another New systemd Feature2Marc Haber
29 May 24   ii          i    ii         `- Re: Yet Another New systemd Feature1Lawrence D'Oliveiro
12 May 24   ii          i    i`* Re: Yet Another New systemd Feature9The Natural Philosopher
12 May 24   ii          i    i `* Re: Yet Another New systemd Feature8Lawrence D'Oliveiro
13 May 24   ii          i    i  +* Re: Yet Another New systemd Feature6D
13 May 24   ii          i    i  i+- Re: Yet Another New systemd Feature1The Natural Philosopher
14 May 24   ii          i    i  i`* Re: Yet Another New systemd Feature4Lawrence D'Oliveiro
14 May 24   ii          i    i  i `* Re: Yet Another New systemd Feature3D
17 May 24   ii          i    i  i  `* Re: Yet Another New systemd Feature2Lawrence D'Oliveiro
18 May 24   ii          i    i  i   `- Re: Yet Another New systemd Feature1D
13 May 24   ii          i    i  `- Re: Yet Another New systemd Feature1The Natural Philosopher
12 May 24   ii          i    `* Re: Yet Another New systemd Feature5D
12 May 24   ii          i     `* Re: Yet Another New systemd Feature4The Natural Philosopher
12 May 24   ii          i      `* Re: Yet Another New systemd Feature3D
13 May 24   ii          i       `* Re: Yet Another New systemd Feature2The Natural Philosopher
14 May 24   ii          i        `- Re: Yet Another New systemd Feature1D
11 May 24   ii          `* Re: Yet Another New systemd Feature19D
11 May 24   ii           +* Re: Yet Another New systemd Feature5The Natural Philosopher
11 May 24   ii           i`* Re: Yet Another New systemd Feature4D
12 May 24   ii           i `* Re: Yet Another New systemd Feature3The Natural Philosopher
12 May 24   ii           i  `* Re: Yet Another New systemd Feature2D
12 May 24   ii           i   `- Re: Yet Another New systemd Feature1The Natural Philosopher
12 May 24   ii           `* Re: Yet Another New systemd Feature13Lawrence D'Oliveiro
12 May 24   ii            `* Re: Yet Another New systemd Feature12D
12 May 24   ii             +* Re: Yet Another New systemd Feature9Lawrence D'Oliveiro
12 May 24   ii             i`* Re: Yet Another New systemd Feature8D
12 May 24   ii             i `* Re: Yet Another New systemd Feature7Lawrence D'Oliveiro
13 May 24   ii             i  `* Re: Yet Another New systemd Feature6D
14 May 24   ii             i   `* Re: Yet Another New systemd Feature5Lawrence D'Oliveiro
14 May 24   ii             i    `* Re: Yet Another New systemd Feature4D
17 May 24   ii             i     `* Re: Yet Another New systemd Feature3Lawrence D'Oliveiro
18 May 24   ii             i      `* Re: Yet Another New systemd Feature2D
27 May 24   ii             i       `- Re: Yet Another New systemd Feature1Lawrence D'Oliveiro
12 May 24   ii             `* Re: Yet Another New systemd Feature2The Natural Philosopher
12 May 24   ii              `- Re: Yet Another New systemd Feature1D
7 May 24   i+* Re: Yet Another New systemd Feature31Lawrence D'Oliveiro
7 May 24   ii+* Re: Yet Another New systemd Feature14Marc Haber
7 May 24   iii`* Re: Yet Another New systemd Feature13Grant Taylor
8 May 24   iii `* Re: Yet Another New systemd Feature12D
8 May 24   iii  `* Re: Yet Another New systemd Feature11Grant Taylor
8 May 24   iii   +* Re: Yet Another New systemd Feature9Carlos E.R.
8 May 24   iii   i+* Re: Yet Another New systemd Feature3Marc Haber
9 May 24   iii   ii`* Re: Yet Another New systemd Feature2Grant Taylor
9 May 24   iii   ii `- Re: Yet Another New systemd Feature1Carlos E.R.
9 May 24   iii   i`* Re: Yet Another New systemd Feature5Grant Taylor
8 May 24   iii   `- Re: Yet Another New systemd Feature1D
7 May 24   ii+- Re: Yet Another New systemd Feature1Lawrence D'Oliveiro
7 May 24   ii`* Re: Yet Another New systemd Feature15candycanearter07
7 May 24   i`* Re: Yet Another New systemd Feature6Lars Poulsen
6 May 24   +* Re: Yet Another New systemd Feature4Grant Taylor
6 May 24   +- Re: Yet Another New systemd Feature1Farley Flud
7 May 24   `- Re: Yet Another New systemd Feature1Woozy Song

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal