1

I altered my /etc/profile and now its showing off some errors whenever i startup my system saying that there's some end of file or something like that missing and the session wont be configured properly. It also says that this is a critical error which needs to be fixed. Kindly help me out on this.

I would appreciate if someone could give me the contents of their /etc/profile

1

1 Answer 1

3

In the particular case of /etc/profile, the base-files package places a template file at /usr/share/base-files/profile, so you can simply copy that.

First back up your existing file

sudo cp /etc/profile{,.old}

Then

sudo cp /usr/share/base-files/profile /etc/profile
0

Not the answer you're looking for? Browse other questions tagged .