Is there a security difference between using dnf on root and sudo dnf on user?

Hi all,

Is there any difference between using dnf on root to install a software and sudo dnf on a user account? I mean about the file permissions etc.

Best Regards

Same same…

More information:


No difference, both ways work fine.


Thanks @florian so I understand that sudoers = root? have exact the same permissions? sudoers can access and delete any root files?

Best Regards

by default yes.

You can use the configuration (/etc/sudoers) and visudo to define what sudoers are allowed to. For example, you may want to allow them to update and shutdown the system but not nothing else. By default, a sudoer has the same rights as root without having to know the root password.

See also: