Liste des Groupes | Revenir à ol misc |
On 5/8/24 13:32, Carlos E.R. wrote:[snip]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.
Les messages affichés proviennent d'usenet.