Sunday, May 5, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1068  / 1 Year ago, tue, may 23, 2023, 3:51:32

So if I disable my root account with sudo passwd -dl root I still have access to sudo {su,bash} or sudo -{s,i} conceptually how are the elavated rights different from the root account?



I know the difference between each of the elevations, or shells, I'm looking for an in-depth difference between an account and elevated rights?


More From » command-line

 Answers
3

There is no difference. sudo changes your user id to root, without regard for whether or not the root account has a password.



The difference between sudo -s and sudo -i is whether or not the environment variables ( things like $HOME ) are kept at your current values ( so ~ still points to your home directory ) or are reset to the values root would get if he logged in normally.


[#33874] Tuesday, May 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainubt

Total Points: 496
Total Questions: 98
Total Answers: 126

Location: Sao Tome and Principe
Member since Wed, Dec 21, 2022
1 Year ago
;