Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 34705  / 2 Years ago, sat, june 25, 2022, 6:46:51

What are the technical differences between the two? The only thing I noticed is that



sudo su


requires you to enter your own password (assuming you're not root)



While



su root


requires you to enter root's password. However both seem to log you into the root user account.


More From » bash

 Answers
7

The second command cannot be executed in a default Ubuntu installation, where the root account is not enabled.



But supposing you have unlocked the root account giving him a password, the two commands could only differ in the environment and shell variable set, I think. Compare the output of env in the two situations, and maybe also the output of set to see the differences.


[#41581] Monday, June 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iething

Total Points: 49
Total Questions: 127
Total Answers: 112

Location: Luxembourg
Member since Tue, Jan 25, 2022
2 Years ago
;