Bob Marčan:
>>> BTW, it's "sudo -i"

Tim:
>> No, it's not.  When I said I typed "su -" I meant that I typed "su -".

Chris Adams:
> Which is what "sudo -i" does, without the superfluous "su -".  And you
> can use "sudo -s" instead of "sudo su" too.
> 
> I don't know where the idea that you need to run a second super-user
> tool from the first super-user tool came from.

Dunno why people find this so hard to understand, or why people are
erroneously correcting what they *think* I was doing.

I was not typing sudo anything, not sudo su anything, just "su -".  If
I was typing "sudo su <something or other">, I would have said so. 
When I say I'm doing something, take it as read that *that* is exactly
what I'm doing, don't interpret it into something else.

For *decades* if you are logged in as yourself, and want to temporarily
do something as the root user, *one* technique has been to simply type
in "su -" in your command line hit enter, and enter the root password
at the prompt.  From then on, you are logged in as root.  Very simple. 
You can do a collection of tasks, related or not, simply by doing them.

For example:
[tim@rocky ~]$ su -
Password: 
Last login: Wed Jun  4 01:29:37 ACST 2025 on pts/7
[root@rocky ~]# ll /etc/httpd/conf.d

Yes, there are risks.  And there are risks with doing "sudo <command>"
as yourself, too.  But the results are entirely predictable (which
hasn't always been the case with sudo, in the past, at least).  And it
is less typing, too.

-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
(yes, this is the output from uname for this PC when I posted)
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to