0

Are:

sudo -i and su - functionally the same, both should give fresh root shells with root's environment right?

If so are sudo -s and su the same?

Thanks

Woodstock
  • 388
  • 3
  • 13
  • Relevant, maybe even a dupe: [Is there ever a good reason to run sudo su?](https://unix.stackexchange.com/q/218169) – terdon Nov 09 '22 at 15:38
  • Also possible dupe: [What is the difference between 'sudo' and 'su -c'](https://unix.stackexchange.com/q/16334) – Kusalananda Nov 09 '22 at 15:45

1 Answers1

0

No, for sudo you use your password. For su you use root user password.

Romeo Ninov
  • 16,541
  • 5
  • 32
  • 44