What does root:wheel mean in the following?
chown root:wheel myfile
What does root:wheel mean in the following?
chown root:wheel myfile
root is a user (the super user) and wheel is a group (of super users I guess).
chown root:wheel myfile
means making myfile belong to the user root and the group wheel (read man chown for more information).
More specifically about the wheel group:It is a Unix group specifically intended for only those users who have rights to su as root.
wheelis typically the group with sudo rights (see this question) – Michael Mrozek Sep 04 '10 at 14:28cd /etc; …; vi hostnamewould succeed); rather the modern approach has system files owned by root:root and requires the use of the sudo command prior to successfully changing a file (eg,cd /etc; …; vi hostnamewould fail, only the more intentionalsudo vi hostnamesucceeds). – vk5tu Oct 14 '20 at 13:34