Having a bit of an problem resetting my root password on a dedicated server with 1&amp;1, running CentOS7.  Able to access GRUB through terminal and can bring up the below, however this looks different to many examples out there.  setparams 'CentOS Linux, with Linux 3.10.0-327.28.2.el7.x86_64'  load_video set gfxpayload=keep                                                     insmod gzio                                                             insmod part_msdos                                                       insmod diskfilter mdraid09                                              insmod ext2                                                             set root='hd0,msdos1'     linux16 /boot/vmlinuz-3.10.0-327.28.2.el7.x86_64 rd.driver.pre=raid1,ahci,dm_mod root=/dev/md1 domdadm dolvm rd.lvm.vg=vg00 rd.lvm.lv=vg00/usr ro console=ttyS0,57600 console=tty0 net.ifnames=0 biosdevname=0 initrd16 /boot/initramfs-3.10.0-327.28.2.el7.x86_64.img       I have tried to change the ro line to rw and add init=/sysroot/bin/sh but this hasn't helped.  When going through the loading process I get the error  [FAILED] Failed to start Switch Root. See 'systemctl status initrd-switch-root.service' for details.
363
I forgot my root password...actually I think I know what it is because it is the same password I have for pretty much everything but in the Terminal in tell me "Sorry, try again." Is there a way to reset the password? If so how?
106407
I'm working on Xubuntu 15.04. I already installed the MariaDB-Server on various systems and was always asked for a root password during installation. This time, however, I don't remember being asked for the password. When I try to login without a password (or a blank password), I get the Access denied for user 'root'@'localhost' error.  I tried uninstalling the package completely by  sudo apt-get remove mariadb-server sudo apt-get purge mariadb-server   When I reinstalled, I still didn't get asked for the root password.  I tried the mysqld --skip-grant-tables approach from  . I can modify the password for the root user in the mysql database - at least the hash value changes - but I still cannot login with the new password after a restart of the mysql-server. I still get the same error.  The user debian-sys-maint does not exist. So, I cannot use it to fix anything.   Any ideas what else I could try?
82846
Goal  I am looking for non interactive way to decrypt a root file partition and a swap partition encrypted with LUKS the next time the system reboots. As well as this, I need a way to undo it after the reboot so that it after one more reboot will require the password again (or even a new password).  The system uses LVM.  I don't want to have to type the password on the system, or use a different system to unlock it, it has to unlock itself that one time.  I have the password it is encrypted with, and would be willing to save it in cleartext on the harddrive. I am not concerned with security at this step.  Background  I have a flow for deploying Ubuntu that is based on an Ubuntu server installation with a custom preseed and kickstart file, kickstart installs a service that run after the first reboot (and only the first reboot) and then reboots again. I am trying to implement LUKS disc encryption in this flow, but I need it to remain non interactive, so it has to be able to restart the first time without a password.  The password set during installation is temporary and will be changed by the service that runs after the first reboot, so the first password can be stored in clear text.  Things I have looked into before posting this question  I have done my fair bit of Googling to try and figure this one out, and most of what I find point towards a solution that swaps out the initramfs file.  I have found multiple resources that explain how to use this to allow for remote unlocking the system, but I need to do it without interaction. Here is one such resource:   The closest thing to a solution I think I have found, is this resource which is supposedly a way of accomplishing what I want for a VPS solution, but it is just a bunch of commands with no explanation, and I don't know how to adapt it:   I also found this resource for ArchLinux , and I have tried adding the kernel parameters, but I have not had any luck with that either. I don't know if it is because LUKS does not support these kernel parameters.
71082
I need to factory reset my Macbook but cannot recall the password. So I used Cmd+R during startup and go to terminal and typed 'resetpassword' according to this advice    Now 'Reset Password' application appears but there is nothing where I have to select the volume containing the user account. Why does this happen?
102850
I am trying to grant sudo privileges to a user of a CentOS 7 devbox by typing gpasswd -a user wheel, but the attempt is failing.  What am I doing wrong?    Here is what I typed:    I discovered that the user is not in the wheel group as follows:    [user@localhost git]$ sudo yum install git [sudo] password for user:  Sorry, try again. [sudo] password for user:  Sorry, try again. [sudo] password for user:  user is not in the sudoers file.  This incident will be reported.   I then logged in as root and typed the following to add the user to the wheel group:    [user@localhost git]$ su - Password:  Last login: Thu Aug 20 17:11:31 PDT 2015 on pts/0 [root@localhost ~]# gpasswd -a user wheel Adding user user to group wheel [root@localhost ~]# exit logout   I finally tried to use the sudo command again but it failed as follows:    [user@localhost git]$ sudo yum install git [sudo] password for user:  user is not in the sudoers file.  This incident will be reported. [user@localhost git]$
100380
I have installed Win7 and Ubuntu both on this machine.  When I try to connect to my vncserver running on CentOS from my home computer behind a firewall, I get an error:     VNC conenction failed: vncserver too many security failures    ... even when loging with right credentials (I reset passwd on CentOS).  Is this caused by attempting to log in as root? I think it is also important to note I have to login to remote Centos through port 6050 - no other port works for me.  Do I have to do something with other ports?  I see that vncserver is listening on 5901, 5902 if another added - and I consider connection is established because from time to time (long time) the passwd prompt appears... right?  Even if prompt appeared and I put correct password I get an authentication failure.  How to disable this lockout for testing purposes?
119526
We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will do.  Is that possible?
93802
I was trying to dual boot elementary os with windows on my laptop (Asus Zenbook UX305). To do that I shrank the windows partition using the windows disk manager, and then used the Elementary installer's "install alongside windows" option to set up the linux partitions automatically. When I rebooted after installing I was put into the grub console. I was able to boot linux manually with the commands  grub&gt; set root=(hd0,gpt4) grub&gt; linux /boot/vmlinuz-3.19.0-26-generic root=/dev/sda4 grub&gt; initrd /boot/initrd.img-3.19.0-26-generic grub&gt; boot     and I found that running the command  grub&gt; configfile (hd0,gpt4)/boot/grub/grub.cfg   would load the normal grub menu as is supposed to happen - so there don't seem to be any problems with the config file itself. I also found that the root and prefix are on (hd0,gpt1), so running  grub&gt; set root=(hd0,gpt4) grub&gt; set prefix=(hd0,gpt4)/boot/grub grub&gt; insmod normal grub&gt; normal   also loaded the normal grub menu. So possibly the problem is that grub is looking on the wrong partition?  In my BIOS, I have a choice between using grub and the windows bootloader to boot. Selecting the windows bootloader boots me directly into windows without any problems.  However, I can't find any way to get any fixes to stick after a reboot. I've tried rerunning grub-install /dev/sda, recreating the config file with grub-mkconfig, and using the Ubuntu boot repair gui tool - none of these have worked. Is there any way to fix this short of reinstalling either or both OSs? I'd rather not have to reinstall windows if possible.
7971
I installed  (Precise Pangolin), 64 bit. Nowhere was I asked to set password for root.  I just installed  software. It was installed under the /root folder by default. Now I try do something on that folder. I tried with su to switch to root, but I don't know its password.   Should I always use sudo or get the default root password, if any?  How do I create a  for software installed inside the /root directory?
104297
On my arch server, I was setting up users restricted to their home directories. I ran:  useradd -m -s /bin/bash username and passwd username  I've read   I figured I should use systemd user services to make each user run a node server on startup. So i logged into one user account su username and created a file ~/.config/systemd/user/serve.service containing:  [Unit] Description=One of the servers  [Service] ExecStart=/usr/bin/node /home/username/server.js  [Install] WantedBy=default.target   then I ran systemctl --user enable serve.service which responded with Failed to connect to bus: Permission denied  As far as I understand I should run systemctl --user ... command logged in as a user and not as root.  So what did I miss in this configuration?
103643
I'm trying to wrap my mind around exactly how password reset procedures work in CentOS/RHEL 7 and I'm missing some fundamental knowledge.   In    I see that chroot /sysroot is necessary but I don't understand why or what this step is specifically doing.  Example verbiage:    (Source A) "5 – Now access the system with this command." (Source B) "BOOM. You are in single user mode. The shell prompt! --looks like :/# type chroot /sysroot" (Source C) "then use chroot to go into a chroot jail"   Suffice it to say, these procedures are a little sparse on explanation. :-(  Can someone please elaborate a little more?
21408
How to password protect Grub menu from the ro recovery nomodeset command. I want it to where no one unless you have the password to make changes to the menu to try to get into recovery.grub
100440
Not that it's a very good idea to change it, but for fun. According to  post, there are still some problems even after changing entries in /etc/passwd, /etc/shadow, and /etc/sudoers. Any suggestions?
59447
I was experimenting a bit and noticed something strange: setting the setuid bit on a copy of bash located at /usr/bin/bash-test seemed to have no effect. When I ran an instance of bash-test, my home directory was not set to /root and when I ran the whoami command from bash-test, my username was not reported as being root, suggesting that bash-test was not running as root. However, if I set the setuid bit on whoami, I was reported as being root in any shell, as expected.  I tried setting the setuid bit on /usr/bin/bash as well and observed the same behavior.  Why is bash not running as root when I set the setuid bit on it? Could selinux have something to do with this?
1117
Can I configure Fedora 22 so anything needing root privileges asks for a password, rather than giving an error, and needing me to re-run with sudo?  I wouldn't even mind having to type my password every time, without the few minute (or whatever it is) timer that it remembers the password for.  i.e. Instead of:  $ dnf history You don't have access to the history DB.   It would:  $ dnf history [sudo] password for &lt;username&gt;:   I think some of the gui apps do that, like the gui yum frontend back when I had that installed.  I'm thinking not... That it would be up to each app to implement this.  But, I'm hoping it might instead be that apps say root privilege is needed, and there might be some way for the kernel (or wherever else) to remain in a blocking input stage (for the password) before returning whether the user has access.
18874
I have ubuntu mate. I have recently changed my password using the passwd command. I know now that I have made a mistake because I also have my home directory encrypted with the previous password.  Consequently after enter my new password at login screen it return me back to the login screen.  Can someone please help me?  I am able to enter to grub boot menu and shell, i am also able to log into guest user. Sorry if the topic is duplicate but I haven't found the same question  Thanks in advance.
96995
I changed my default shell from bash to zsh and after rebooting, I am stuck in a loop where it brings me back to the login prompt after my password is entered correctly - cannot log into root either.   Because I am at the login prompt I am unable to edit anything so will need a live usb, but not sure what else to do/how to go about fixing the issue  EDIT: As requested, I log into tty1 which is there by default, I enter in my username and password as usual but when I do this it displays some text too quickly to read then goes back to the same prompt for my username again. Usually it would take me into a terminal after that where I would start xfce with startxfce4 command  To change the shell I did chsh /bin/zsh  I may have also run it as sudo, however I did this yesterday and can no longer recall if I did this or not.