How do i add my root user name to sudeors file in my Ubuntu operating system, because i can not have access as a root user now.
2318
I clean-installed Ubuntu 11.10 today, and then installed VirtualBox.  This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a group, I ran the following command:  sudo usermod -G vboxusers stephane   This is a problem.  I now see what I should have run instead is:  sudo usermod -aG vboxusers stephane   The end result is I'm no longer in the groups I should be in.  Including whatever group is required to run "sudo".  When I run any command as sudo now, I get the following:  $ sudo ls [sudo] password for stephane:  stephane is not in the sudoers file.  This incident will be reported.   Is there a way to fix this, or do I need to re-install from scratch again?
59930
How do I change from user to superuser (root)? What command do I use in the Terminal to switch to root? I have tried --help but I get lost with all the listed help. I'm looking for a recent download/install so I can use it.
101627
I am trying to add a new user to my ubuntu 14.04 os. I go System Settings -> User Accounts and try to click the [+] button, but nothing happens it is grayed out. The system did not ask me for administrator password, why? Is this a bug?
120288
I'm a systems admin for a company and was thrown into a horribly configured server. In the midst of my refactoring I was adding users to my /etc/sudoers file. I seem to have accidentally removed my server admin account from the sudoers file access.  I know what I did wrong (i accidentally commented out the %admin line) question being, how can I reinstate my server admin access in the file without having to restart anything.   Here's how it looks right now:  ## ## User privilege specification ## root ALL=(ALL) ALL #%admin  ALL=(ALL) ALL %superuser ALL=(ALL) ALL "user1" ALL=(ALL) ALL "user2" ALL=(ALL) ALL   Also note that my users do not have permission for sudo for some reason:  Realtor-Station-3-27:~ user1$ sudo -i  WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information.  To proceed, enter your password, or type Ctrl-C to abort.  Password: user1 is not in the sudoers file.  This incident will be reported. Realtor-Station-3-27:~ user1$
79967
I've created a new user by using "User Accounts" in "System Settings". How do I grant rights so that this new user can have the same level of access as root?
27367
I just powerwashed (that's a factory reset on chromebooks) my computer so that it would be be 'brand new,' however now I don't have sudo access anymore. I used to not need a password to use sudo, however now a password is required and I have no idea what it is. I tried my login password, however that didn't work. Any advice?
69607
I have accidentally typed my name wrong when I created the administrator account. Although I managed to change the user name at the login screen, I am unable to rename the /home/oldusername to /home/newusername. I tried most of the online tutorials, and it failed.  The code I tried was this:  usermod -l newusername -m -d /home/newusername oldusername   But the output is:  cannot lock /etc/passwd; try again later.   How can I fix the issue and change the folder to newusername and expect all the applications to work as before?
15148
I would like to enable the root account on my Ubuntu installation.  I realize the security implications of this.
15467
I have a Non Root User abc and want to give the user sudo rights only to restart, start or stop - mysqld service. i.e sudo service mysqld restart. How can I do it so?     I would like to do the same to usergroup too!!
32153
How can I fix the following error with sudo?  /etc$ sudo sudo: /etc/sudoers.d is world writable usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user             name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user             name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-D level] [-g             groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid]             [VAR=value] [-i|-s] [&lt;command&gt;] usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-D level] [-g             groupname|#gid] [-p prompt] [-u user name|#uid] file ...
796
Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for applications? How do I keep permissions and my keys for various authentification (e.g. email, SSH, GPG and more)? What settings could possibly get lost if I changed my username?
59867
If I run:  sudo chown -R user:user /   Can I revert it to what it was before I ran it?
101173
I was making some changes recently, trying to rename my user account from the macOS High Sierra System Preferences, and it seems I've locked myself out from making any changes to Users &amp; Groups now.  When I click the lock icon (Click the lock to make changes) I am prompted for a User Name and Password. No matter what I input in these fields I am unable to unlock the preferences. I am sure I know my user account, otherwise I wouldn't be able to log into the computer, and there is only 1 user on my Mac.  I've also tried with:  sudo dscl . -merge /Groups/admin GroupMembership &lt;username&gt; Password: &lt;username&gt; is not in the sudoers file.  This incident will be reported.   So it seems the name change is causing a mismatch between what's in the sudoers file, so I basically have no user with admin access right now.  Does anyone know how I can reset these, even from the command line? Thanks in advance!
18506
See Also:          I changed file permissions recursively on the root directory / by executing sudo chmod -R / 777, and after that my system won't boot (I'm getting a lot of "permission denied" errors).  Please help.
62178
I am a user of Ubuntu with not much experience and I have been using sudo.  What does sudo !! do and how?
5505
After I add a user using adduser, I can't see it via System > Administration > Users and Groups unless I log out and then log in again. Is that normal?  Also, can I set a newly added user as a sudoer or do I have to change that only after adding it? How can I do that via the shell?  Finally, can I delete the original user that was created upon initial installation of Ubuntu, or is this user somehow 'special'?
113043
I wanted to change the name of my user as well as its home directory. Looking for a way to do this, I stumbled upon .  I did everything as described there, but since I restarted the computer, all that happened is, that I'm not an admin anymore.  I can't unlock anything under System Preferences > Users &amp; Groups, as well as I'm unable to edit /etc/sudoers/  What went wrong? whoami still shows my previous username..  How can I fix this mess? Am I screwed now?  macOS 10.13.4 btw