Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #56333

Re: Yet Another New systemd Feature

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Yet Another New systemd Feature
Date 2024-05-09 11:08 +0200
Message-ID <gdgugkx5rf.ln2@Telcontar.valinor> (permalink)
References (6 earlier) <v1dutq$q8t$3@tncsrv09.home.tnetconsulting.net> <4ffbcb1a-6f98-328e-7854-e2a42caeca75@example.net> <v1g71v$s3s$1@tncsrv09.home.tnetconsulting.net> <k3tsgkx98l.ln2@Telcontar.valinor> <v1h91a$kln$1@tncsrv09.home.tnetconsulting.net>

Show all headers | View raw


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.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-05 23:17 +0000
  Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-06 08:24 +0100
    Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-06 10:00 +0200
    Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-06 08:11 +0000
      Re: Yet Another New systemd Feature Kyonshi <gmkeros@gmail.com> - 2024-05-06 10:50 +0200
        Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-06 11:42 +0100
          Re: Yet Another New systemd Feature Kyonshi <gmkeros@gmail.com> - 2024-05-06 15:09 +0200
            Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-06 19:29 +0200
            Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-06 13:56 -0500
            Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-06 20:35 +0100
        Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-06 21:56 +0000
      Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-06 11:39 +0100
        Re: Yet Another New systemd Feature yeti <yeti@tilde.institute> - 2024-05-06 14:00 +0042
          Re: Yet Another New systemd Feature John McCue <jmccue@magnetar.jmcunx.com> - 2024-05-06 17:15 +0000
            Re: Yet Another New systemd Feature Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-05-06 23:18 +0000
              Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-07 09:34 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-07 08:50 +0100
                Re: Yet Another New systemd Feature Joe Beanfish <joebeanfish@nospam.duh> - 2024-05-07 15:32 +0000
                Re: Yet Another New systemd Feature Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-05-07 20:25 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-08 10:53 +0100
        Re: Yet Another New systemd Feature G <g@nowhere.invalid> - 2024-05-06 17:29 +0000
        Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-06 21:58 +0000
          Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-07 08:28 +0100
    Re: Yet Another New systemd Feature Andy Burns <usenet@andyburns.uk> - 2024-05-06 09:32 +0100
      Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-06 11:41 +0100
        Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-06 13:55 -0500
        Re: Yet Another New systemd Feature Andy Burns <usenet@andyburns.uk> - 2024-05-06 20:08 +0100
          Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-06 19:11 -0500
            Re: Yet Another New systemd Feature Richard Kettlewell <invalid@invalid.invalid> - 2024-05-07 16:29 +0100
              Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-07 14:19 -0500
                Re: Yet Another New systemd Feature Richard Kettlewell <invalid@invalid.invalid> - 2024-05-07 23:01 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-07 23:00 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-08 10:58 +0100
                Re: Yet Another New systemd Feature Richard Kettlewell <invalid@invalid.invalid> - 2024-05-08 18:48 +0100
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-08 19:59 +0100
                Re: Yet Another New systemd Feature Richard Kettlewell <invalid@invalid.invalid> - 2024-05-08 23:20 +0100
                Re: Yet Another New systemd Feature vallor <vallor@cultnix.org> - 2024-05-08 23:01 +0000
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-08 20:49 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-09 13:01 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-09 22:49 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-10 17:16 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-10 21:24 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-11 09:00 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-11 08:47 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-11 10:14 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-11 21:14 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 00:16 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-12 01:53 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 02:37 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 12:51 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 20:48 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-13 11:42 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-13 22:45 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-14 21:22 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-27 08:16 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-27 16:13 +0100
                Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-28 13:11 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-28 12:18 +0100
                Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-28 15:27 +0200
                Re: Yet Another New systemd Feature Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-05-28 18:11 +0000
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-28 23:06 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-12 19:21 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 20:48 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-13 11:43 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-13 12:20 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-13 22:45 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-14 21:21 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-17 07:49 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-18 00:33 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-13 12:10 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 12:44 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-12 19:33 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 21:42 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-13 11:41 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-14 20:49 +0200
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-11 11:31 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-11 12:04 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-11 21:17 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-12 01:51 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 12:42 +0200
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-12 19:29 +0100
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 00:45 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 12:36 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 15:21 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 21:39 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-12 20:49 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-13 11:43 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-14 00:40 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-14 21:22 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-17 07:47 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-18 00:33 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-27 06:50 +0000
                Re: Yet Another New systemd Feature The Natural Philosopher <tnp@invalid.invalid> - 2024-05-12 19:22 +0100
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-12 21:40 +0200
        Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-06 22:00 +0000
          Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-07 08:59 +0200
            Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-07 14:20 -0500
              Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-08 11:52 +0200
                Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-08 10:51 -0500
                Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-08 20:32 +0200
                Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-08 22:07 +0200
                Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-08 20:32 -0500
                Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-09 11:06 +0200
                Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-08 20:31 -0500
                Re: Yet Another New systemd Feature "Carlos E.R." <robin_listas@es.invalid> - 2024-05-09 11:08 +0200
                Re: Yet Another New systemd Feature candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-05-09 17:20 +0000
                Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-09 17:59 -0500
                Re: Yet Another New systemd Feature candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-05-14 03:42 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-08 22:51 +0200
            Re: Yet Another New systemd Feature Bud Frede <frede@mouse-potato.com> - 2024-07-06 18:18 -0400
          Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-07 07:19 +0000
          Re: Yet Another New systemd Feature candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-05-07 16:00 +0000
            Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-07 14:21 -0500
              Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-08 11:53 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-08 20:47 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-09 11:29 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-09 22:51 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-10 11:38 +0200
                Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-10 21:25 +0000
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-11 11:30 +0200
                Re: Yet Another New systemd Feature Bud Frede <frede@mouse-potato.com> - 2024-07-06 18:25 -0400
                Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-08 20:38 -0500
                Re: Yet Another New systemd Feature D <nospam@example.net> - 2024-05-09 11:33 +0200
              Re: Yet Another New systemd Feature candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-05-08 15:20 +0000
            Re: Yet Another New systemd Feature Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-05-07 22:06 +0000
              Re: Yet Another New systemd Feature candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-05-08 15:20 +0000
        Re: Yet Another New systemd Feature Lars Poulsen <lars@beagle-ears.com> - 2024-05-07 14:20 -0700
          Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-08 08:27 +0200
            Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-08 20:44 -0500
              Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-09 09:07 +0200
                Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-09 18:36 -0500
                Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-10 09:11 +0200
      Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-06 13:53 -0500
        Re: Yet Another New systemd Feature Andy Burns <usenet@andyburns.uk> - 2024-05-06 20:00 +0100
          Re: Yet Another New systemd Feature Grant Taylor <gtaylor@tnetconsulting.net> - 2024-05-06 19:13 -0500
          Re: Yet Another New systemd Feature Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-05-07 09:26 +0200
      Re: Yet Another New systemd Feature Farley Flud <ff@linux.rocks> - 2024-05-06 19:43 +0000
      Re: Yet Another New systemd Feature Woozy Song <suzyw0ng@outlook.com> - 2024-05-07 13:35 +0800

csiph-web