Score:0

Not able to login, getting /etc/profile error while trying to login

sl flag

I'm not able to login to my desktop. Every time I try to login to my system I get this error as shown in the screenshot.

enter image description here

guiverc avatar
cn flag
You've not provided any OS/product/release details; are we to guess?
Score:1
bo flag

Use CTRL+ALT+F4 and then log in with your username and password.

From there, run:

nano /etc/profile

and edit the file.

The error says that there is a problem on lines 29 and 30 of the file.

According to the error, the screenshot is blurry but it looks like you're missing a ' to close an unmatched ' earlier in the file. You need to insert the missing ' where it belongs, probably somewhere on line 29 or 30. This assumes you're not also missing anything after the quotation mark.

Unexpected EOF error can be something simple like an unmatched or unclosed quotation mark (like in this case) or even a missing space or sometimes, although more rarely, even an extra added empty space at the end of the file.

mchid avatar
bo flag
You can see in [this similar question/answer](https://askubuntu.com/a/824406/167115) that the user accidentally pasted something into their `.bashrc` file to cause the same error.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.