You are not logged in.

#1 2012-10-15 02:55:37

ill
Member
From: US
Registered: 2011-06-22
Posts: 115

Can't Login

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
ncmpcpp

My best guess is that the "sudo gpasswd -a mpd audio" messed something up.

Last edited by ill (2012-10-15 06:03:54)

Offline

#2 2012-10-15 06:19:00

ill
Member
From: US
Registered: 2011-06-22
Posts: 115

Re: Can't Login

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

#3 2012-10-15 22:25:44

ill
Member
From: US
Registered: 2011-06-22
Posts: 115

Re: Can't Login

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

#4 2012-10-15 22:29:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Can't Login

Login as root, then

passwd <username>

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-10-15 22:47:06

ill
Member
From: US
Registered: 2011-06-22
Posts: 115

Re: Can't Login

I tried that. "Also, I was able to change my password with the passwd command, if that helps at all."

Offline

#6 2012-10-16 14:40:51

jameslan
Member
From: Shenzhen, China
Registered: 2012-10-16
Posts: 1

Re: Can't Login

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

#7 2012-10-16 15:09:39

morrow
Member
Registered: 2012-10-16
Posts: 3

Re: Can't Login

The problem lies with the command

systemd-tmpfiles --create

which 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). smile

For reference, the command should be

systemd-tmpfiles --create mpd.conf

I've fixed this in the wiki.

Last edited by morrow (2012-10-16 15:11:17)

Offline

#8 2012-10-16 22:22:06

ill
Member
From: US
Registered: 2011-06-22
Posts: 115

Re: Can't Login

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

Board footer

Powered by FluxBB