add wheel group on host file
By mistake i removed the wheel group from host file , i would like to add it again how to do this? i have catalina os
thanks in advanced!
By mistake i removed the wheel group from host file , i would like to add it again how to do this? i have catalina os
thanks in advanced!
Those are the only two Terminal commands that traditionally can change the group. Uncertain if actual root (su) privileges are available on Catalina even to adminstrators, but that may be what is needed when sudo doesn't do the job:
su
chgrp wheel /etc/hosts
It might be as simple as the following entered in the Terminal, or Catalina security is going to box you. Type in your (non-echoed) adminstrator password when prompted by sudo:
sudo chown root:wheel /etc/hosts
When i run the command su chgrp wheel /etc/hosts reply's me
su:sorry
i create some files and tried to add groups like wheel and staff but i didnt make it , its impossible to add them
i am new in mac world i have the macbook air about 1 week so i have software support for 3 months, i will contact them and i will come back it might intrested u what they reply me.
p.s
i dont know if that its important to have the wheel group on my host file.
finally i add wheel group on hosts file.
its little weird...
first i add from get info two accounts (administrators and my local admin account)
after via terminal i run the command sudo chown root:wheel /etc/hosts
and add me the wheel group and remove the administrator
thanks my friend i will try it!
didnt work :( wheel group not appear on hosts file , any idea?
Alternative:
sudo chgrp wheel /etc/hosts
unfortunately nothing :(
i dont receive any error on terminal but group wheel not added
if i run the command sudo chown root:wheel /etc
wheel group is added on etc folder
but sudo chown root:wheel /etc/hosts not added on hosts file
vikingOSX thank u so much for your valuable help!!!!
add wheel group on host file