sudo vs su: what's the difference?
BeginnerConceptPermissions, Users & sudo
Answer
su switches to another user and needs that user's password (root's password for su -). sudo runs a command using your own password, per-command, with fine-grained rules and an audit trail. In production root passwords are locked and admins use sudo. su - (or sudo -i) gives a login shell with the target's environment; plain su keeps much of yours.
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerHow does octal notation work in chmod?BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?Intermediate