Query failed: connection to localhost:9312 failed (errno=111, msg=Connection refused). How do I add a user to /etc/sudoers file? - macOS Discussions on AppleInsider Forums Toggle navigation All Forums Recent Posts Sign In How do I add a user to /etc/sudoers file? dstranathan Posted: December 20, 2004 1:52PM in macOS edited January 2014 How do I add a user to /etc/sudoers file? I'm a local admin (and root) on my OS X box and I want to add a user to be able to sudo.What does the %admin do? (I mean why the % char? what's it do?)Do I have to use visudo to edit it? Comments Reply 1 of 2 kickaha Posts: 8,760member December 20, 2004 2:03PM Yes. man visudo will help. Reply 2 of 2 karl kuehn Posts: 756member December 20, 2004 5:24PM Are you just looking to give the person admin rights? Then they just need to be an admin, or added to the "wheel" group. If you are trying to do something more specific, then you need to spend some time (as Kickaha suggested) with the sudo manual, and look at all of the examples given in /etc/sudoers Sign In or Register to comment.