Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3557

General Debian • [Discussion] Help me understand root and sudo

$
0
0
Sudo allows non-root to momentarily elevate to root status and ones the administrative task is complete the non-root users status is returned t as a (normal user)
On the other hand su directly elevates the "normal user" to root and can only we voided upon the normal user using the ^d command ctrl + d command to drop back into a non root environment.
Persistent root access is easily attained with sudo -i.
IMHO new Linux users should alway opt for not enabling the root(superuser) account and instead opt for using the sudo option as it is a much Moore secure method for changing super user privileges
Agreed with one small exception - in Debian grub's recovery console *requires* a root password. What I do is skip the root password setup in the installer so my user gets added to sudoers and then manually set a root password after install, but I've used sudo exclusively for more than 20 years. No reason for me to use su - and especially no reason for me to use "sudo su -" :mrgreen:

Statistics: Posted by wizard10000 — 2024-07-04 10:02 — Replies 24 — Views 1209



Viewing all articles
Browse latest Browse all 3557

Trending Articles