Restore root groups on Fedora
I'm pretty new to linux (working on fedora) and managed to mess something up, hopefully u can help me to undo it!
While logged in as root I added root to the named group with the command:
usermod -G named root
What i didnt realise was that this command also takes root out of every group except named and root.
I had a 2 month old backup of the passwd file, I thought this would revert the groups back to what they had been 2 months ago but when I tried it root is still just a member of named and root.
I want root to be a member of all the groups it was a member of before I executed this command.
Any help would be appreciated..