You are not logged in.
Pages: 1
I was trying to get mpd set up, following the wiki guide and now I can't use my password to enter sudo nor can I su into the root account. I really don't know whats up but now when I try to enter my password for sudo it says "System booting up" which it never used to after entering my sudo password. Pretty scared that if I reboot I won't be able to login to this box at all. Also, I was able to change my password with the passwd command, if that helps at all.
Pertinent log history:
sudo cp /usr/share/doc/mpd/mpdconf.example /etc/mpd.conf
sudo nano /etc/mpd.conf
sudo mkdir /var/log/mpd
sudo chown -R mpd /var/log/mpd
sudo systemd-tmpfiles --create
sudo gpasswd -a mpd audio
sudo mkdir /var/lib/mpd/music
sudo echo "/home/james/Music /var/lib/mpd/music none bind" >> /etc/fstab
sudo gedit /etc/fstab
sudo mount -a
sudo gedit /etc/fstab
sudo mount -a
sudo /etc/rc.d/mpd start
sudo touch /var/lib/mpd/{mpd.db,mpdstate}
sudo nano /usr/lib/tmpfiles.d/mpd.conf
sudo chown -R mpd /var/lib/mpd
sudo mpd --create-db
sudo /etc/rc.d/mpd start
yaourt -S mpc
mpc update
sudo nano /etc/rc.conf
ncmpcppMy best guess is that the "sudo gpasswd -a mpd audio" messed something up.
Last edited by ill (2012-10-15 06:03:54)
Offline
Turns out I entered the wrong root password, I can log into my root account fine but my user account still doesn't work. Any help would be greatly appreciated.
Offline
Created a new user with the root account, everything works fine there. If I can fix the old account that would be great but if not I can just copy my configs over to this new account.
Offline
Login as root, then
passwd <username>"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I tried that. "Also, I was able to change my password with the passwd command, if that helps at all."
Offline
It seems like an error of group, you can try to find if the old account in the right groups, you can run "groups OLDACCOUNT" in root.
Good luck :-)
Offline
The problem lies with the command
systemd-tmpfiles --createwhich when run with no arguments will recreate (if nonexistent) all files and directories listed within the various tmpfiles.d conf files in /lib/ and /etc/. The file responsible for this issue is /lib/tmpfiles.d/systemd.conf, which contains (amongst other things):
F /run/nologin 0755 - - - "System is booting up."The presence of /run/nologin prevents all non-root logins until removed. It's obviously removed later on in the boot process, but running systemd-tmpfiles --create recreated it. From what I can tell, you can just remove /run/nologin as root or simply reboot to fix the issue (assuming that you haven't already done so). ![]()
For reference, the command should be
systemd-tmpfiles --create mpd.confI've fixed this in the wiki.
Last edited by morrow (2012-10-16 15:11:17)
Offline
Thanks, the file was no longer there after a reboot but still can't login to that user account. I'm just gonna stick with copying my files to the new users' home dir, thanks everyone for trying though.
Offline
Pages: 1