I can’t login because of /etc/nologin

This isn’t homework, this is on my personal machine. I’m taking a Linux system administration class and the teacher told us about the /etc/nologin file. So without thinking I tried it out on my personal computer and created the file and logged out. But now I can’t sign in with my user or root account. How can I fix this?

That was a pretty stupid thing to do then, wasn’t it? :wink:

Boot up from the live medium that you used for installing the system, mount your on-disk root filesystem into the tree somewhere ─ e.g. at /mnt ─ and delete the file again from there.

2 Likes

Thank you so much it worked! And yes it was a pretty stupid thing to do

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.