Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialThomas C
Courses Plus Student 8,754 Pointstreehouse is not in the sudoers file. This incident will be reported.
This is the process of attempting to create a new group and add my users to it but deleting the admin group and ended up with the error in the title.
I wanted to test the functionality of GIT between two users - namely a fast-forward commit.
To set this up I created a new user - 'mike'. After the fact I created a new mutual group 'git'. This was to be used for mutual collaboration on the repository.
Initially I used 'sudo addgroup git' to create the group (which I thought had worked). After this I googled to find how to add a user to a group or to change the [primary] group a user was in.
To create the group and add the user to it, I used the following command - [sudo usermod -a -G sudo username] & [sudo usermod -a -G admin username] - which I found at the page base of the following link: http://askubuntu.com/questions/66718/how-to-manage-users-and-groups
I ran the commands in that order, checking 'groups' after each command, though, and despite no errors, the first command appeared not to work. The second command created the 'admin' group as expected.
Though not entirely sure if this is why it occurred, I ran 'sudo delgroup admin' which worked. And that's when the titled error began appearing.
Now I'm unable to 'sudo' anything. Is there another reason for not being able to use the command, or for now no longer having the 'treehouse' user in the 'sudoers' file? Is it possible for someone to add my treehouse user back in to the file? Or better yet, is there something I can do to enable use of the 'sudo' command, and, what should I know to prevent loosing these permissions in the future?
Thanks heaps for your help guys!