Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v1h91a$kln$1@tncsrv09.home.tnetconsulting.net>
Deutsch   English   Français   Italiano  
<v1h91a$kln$1@tncsrv09.home.tnetconsulting.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.omega.home.tnetconsulting.net!not-for-mail
From: Grant Taylor <gtaylor@tnetconsulting.net>
Newsgroups: comp.os.linux.misc
Subject: Re: Yet Another New systemd Feature
Date: Wed, 8 May 2024 20:31:22 -0500
Organization: TNet Consulting
Message-ID: <v1h91a$kln$1@tncsrv09.home.tnetconsulting.net>
References: <v1941f$24d4m$1@dont-email.me> <v1a0j2$2eb40$1@dont-email.me>
 <l9ris7F74e0U1@mid.individual.net> <v1ac52$2gs3r$2@dont-email.me>
 <v1bjt6$2q1db$9@dont-email.me> <v1cjgk$1fulr$1@news1.tnib.de>
 <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>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 May 2024 01:31:22 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="omega.home.tnetconsulting.net:198.18.1.140";
	logging-data="21175"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <k3tsgkx98l.ln2@Telcontar.valinor>
Bytes: 2895
Lines: 39

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.



-- 
Grant. . . .